def __getattr__(self, key):
        """getattr aliased to getitem"""
        if key in self.iterkeys():
            return self[key]
        else:
            raise AttributeError(key)
def __getattr__ ( self , key ) : if key in self . iterkeys ( ) : return self [ key ] else : raise AttributeError ( key )
getattr aliased to getitem