def to_dict(self):
d = {}<EOL>for k, v in self.__dict__["<STR_LIT:data>"].iteritems():<EOL><INDENT>if isinstance(v, RecursiveAttribute):<EOL><INDENT>d[k] = v.to_dict()<EOL><DEDENT>else:<EOL><INDENT>d[k] = v<EOL><DEDENT><DEDENT>return d<EOL>
Get an equivalent dict representation.