#NEWLINE# def __getattr__( self , key ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return self . __getitem__ ( key ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# return getattr ( super ( AttrDict , self ) , self )