Do not use global self in ctypes backend