def __getattr__(self, name):
        """Look for additional properties in the 'properties'
        dictionary, and if present - the 'delivery_info'
        dictionary."""
        if name == '__setstate__':
            # Allows pickling/unpickling to work
            raise AttributeError('__setstate__')

        if name in self.properties:
            return self.properties[name]

        if 'delivery_info' in self.__dict__ \
                and name in self.delivery_info:
            return self.delivery_info[name]

        raise AttributeError(name)
def __getattr__ ( self , name ) : if name == '__setstate__' : raise AttributeError ( '__setstate__' ) if name in self . properties : return self . properties [ name ] if 'delivery_info' in self . __dict__ and name in self . delivery_info : return self . delivery_info [ name ] raise AttributeError ( name )
Look for additional properties in the 'properties'
        dictionary, and if present - the 'delivery_info'
        dictionary.