Moving towards the new API of NumPy.

Using uintptr_t to store pointers as int.