CPython: use PyCapsule on >= 3.x, PyInt on >= 2.5.

Python 2.5 didn't have PyCapsule.