code: def _traverse_results(value, fields, row, path):
      
      for f, v in value.iteritems():  # for each item in obj
          field_name = '{path}.{name}'.format(path=path, name=f) if path else f
  
          if not isinstance(v, (dict, list, tuple)):  # if not data structure
              if field_name in fields:
                  row[fields.index(field_name)] = ensure_utf(v)
  
          elif isinstance(v, dict) and f != 'attributes':  # it is a dict
              _traverse_results(v, fields, row, field_name)
docs: Helper method for parse_results().
  
      Traverses through ordered dict and recursively calls itself when encountering a dictionary