Use NpyCapsule instead of PyCObject for py3k compat.

The capsule API can mostly be just substituted for the PyCObject API (though I am familiar with neither, this was learned from reading py2->3 porting guides). Numpy provides a wrapper that handles this. (Issue #1413)