def __getattr__(self, name):
try:<EOL><INDENT>return self[name]<EOL><DEDENT>except KeyError:<EOL><INDENT>raise AttributeError(name)<EOL><DEDENT>
Permit dictionary items to be retrieved like object attributes

:param name: attribute name
:type name: str, int
:return: dictionary value