def __getitem__(self, prop):
        """Allow dict-style access to attributes to ease transition from when results were dicts."""
        if prop in self.__dict__:
            return getattr(self, prop)
        raise KeyError(prop)
def __getitem__ ( self , prop ) : if prop in self . __dict__ : return getattr ( self , prop ) raise KeyError ( prop )
Allow dict-style access to attributes to ease transition from when results were dicts.