def object_setattr(self, obj, attr, val):
    fnty = Type.function(Type.int(), [self.pyobj, self.pyobj, self.pyobj])
    fn = self._get_function(fnty, name='PyObject_SetAttr')
    return self.builder.call(fn, [obj, attr, val])
def object_setattr(self, obj, attr, val):
    fnty = Type.function(Type.int(), [self.pyobj, self.pyobj, self.pyobj])
    fn = self._get_function(fnty, name='PyObject_SetAttr')
    return self.builder.call(fn, [obj, attr, val])