def __getattr__(self, name):<EOL>
if name in self.__dict__:<EOL><INDENT>return self.__dict__[name]<EOL><DEDENT>if name=='<STR_LIT>':<EOL><INDENT>self.__dict__['<STR_LIT>'] = collections.OrderedDict()<EOL>return self.__dict__['<STR_LIT>']<EOL><DEDENT>if name=='<STR_LIT>':<EOL><INDENT>self.__dict__['<STR_LIT>'] = collections.OrderedDict()<EOL>return self.__dict__['<STR_LIT>']<EOL><DEDENT>if name in self.allowed_fields:<EOL><INDENT>if not name in self.fields:<EOL><INDENT>return None<EOL><DEDENT>return self.fields[name]<EOL><DEDENT>if name in self.allowed_children:<EOL><INDENT>if not name in self.children:<EOL><INDENT>self.children[name] = []<EOL><DEDENT>return self.children[name]<EOL><DEDENT>
print("Checking %s for attr %s..."%(self.get_id(),name))