Returns a dictionary with the diffs between two dictionaries

    It will ignore any key that doesn't exist in dict2

def _get_diff_dict(dict1, dict2):
    '''
    Returns a dictionary with the diffs between two dictionaries

    It will ignore any key that doesn't exist in dict2
    '''
    ret_dict = {}
    for p in dict2.keys():
        if p not in dict1:
            ret_dict.update({p: {'val1': None, 'val2': dict2[p]}})
        elif dict1[p] != dict2[p]:
            if isinstance(dict1[p], dict) and isinstance(dict2[p], dict):
                sub_diff_dict = _get_diff_dict(dict1[p], dict2[p])
                if sub_diff_dict:
                    ret_dict.update({p: sub_diff_dict})
            else:
                ret_dict.update({p: {'val1': dict1[p], 'val2': dict2[p]}})
    return ret_dict