#NEWLINE# def GetAttr( self , obj ) : #NEWLINE# #INDENT# out = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for key in dir ( obj ) : #NEWLINE# #INDENT# if ( not ( ( key . startswith ( '__' ) and key . endswith ( '__' ) ) or key . startswith ( '_SymbolTable' ) or ( key == '_main' ) ) ) : #NEWLINE# #INDENT# a = getattr ( obj , key ) #NEWLINE# out [ obj ] = a #NEWLINE# #UNINDENT# #UNINDENT# return out