> data is a buffer : long* for example while obj_ptr is a PyObject*. It is not the same.

oh dear I got it completely wrong here..