def set_attr(self, name, value):
    if (name == 'thisown'):
        return self.this.own(value)
    if (hasattr(self, name) or (name == 'this')):
        set(self, name, value)
    else:
        raise AttributeError(('You cannot add attributes to %s' % self))
def set_attr(self, name, value):
    if (name == 'thisown'):
        return self.this.own(value)
    if (hasattr(self, name) or (name == 'this')):
        set(self, name, value)
    else:
        raise AttributeError(('You cannot add attributes to %s' % self))