def METHOD_NAME(self, property, value):
    if property.name in dir(self.props):
        self.__dict__[property.name] = value
    else:
        raise(AttributeError('unknown property %s' % property.name))