def to_dict(self):
ndict = {}<EOL>for key, val in self.__dict__.items():<EOL><INDENT>if key[<NUM_LIT:0>] == "<STR_LIT:_>":<EOL><INDENT>ndict[key[<NUM_LIT:1>:]] = val<EOL><DEDENT>else:<EOL><INDENT>ndict[key] = val<EOL><DEDENT><DEDENT>return ndict<EOL>
returns self as a dictionary with _underscore subdicts corrected.