Warning
The CObject API is deprecated as of Python 2.7. Please switch to the new Capsules API.
Create a PyCObject from the void * cobj. The destr function will be called when the object is reclaimed, unless it is NULL.
Create a PyCObject from the void * cobj. The destr function will be called when the object is reclaimed. The desc argument can be used to pass extra callback data for the destructor function.