code: def _get_property_dict(schema):
      
      pdict = {}
      for k, v in schema['properties'].items():
          pdict[k] = {}
          if 'items' in v and 'properties' in v['items']:
              pdict[k] = _get_property_dict(v['items'])
      pdict[settings.LEVEL_FIELD] = {}
      return pdict
docs: given a schema object produce a nested dictionary of fields