def object_getattr(self, obj, attr):
    fnty = Type.function(self.pyobj, [self.pyobj, self.pyobj])
    fn = self._get_function(fnty, name='PyObject_GetAttr')
    return self.builder.call(fn, [obj, attr])
def object_getattr(self, obj, attr):
    fnty = Type.function(self.pyobj, [self.pyobj, self.pyobj])
    fn = self._get_function(fnty, name='PyObject_GetAttr')
    return self.builder.call(fn, [obj, attr])