code: def _get_values(cls, diff_dict, type='new'):
          '''
          Returns a dictionaries with the 'new' values in a diff dict.
  
          type
              Which values to return, 'new' or 'old'
          '''
          ret_dict = {}
          for p in diff_dict.keys():
              if type in diff_dict[p].keys():
                  ret_dict.update({p: diff_dict[p][type]})
              else:
                  ret_dict.update(
                      {p: cls._get_values(diff_dict[p], type=type)})
          return ret_dicf _get_values(cls, diff_dict, type='new'):
          '''
          Returns a dictionaries with the 'new' values in a diff dict.
  
          type
              Which values to return, 'new' or 'old'
          '''
          ret_dict = {}
          for p in diff_dict.keys():
              if type in diff_dict[p].keys():
                  ret_dict.update({p: diff_dict[p][type]})
              else:
                  ret_dict.update(
                      {p: cls._get_values(diff_dict[p], type=type)})
          return ret_dict
docs: Returns a dictionaries with the 'new' values in a diff dict.
  
          type
              Which values to return, 'new' or 'old'