def _get_property_dict(schema):
pdict = {}<EOL>for k, v in schema['<STR_LIT>'].items():<EOL><INDENT>pdict[k] = {}<EOL>if '<STR_LIT>' in v and '<STR_LIT>' in v['<STR_LIT>']:<EOL><INDENT>pdict[k] = _get_property_dict(v['<STR_LIT>'])<EOL><DEDENT><DEDENT>pdict[settings.LEVEL_FIELD] = {}<EOL>return pdict<EOL>
given a schema object produce a nested dictionary of fields