Add PyCapsule support