Fix for the NumPy C-API deprecation mechanism.
Changes according to Charles Harris' comments.
Changes according to Charles Harris' comments.
Fixed typo.
Reflect file name change in setup.py.
More tiny changes according to Charles Harris' comments.
Merge pull request #3527 from dmuellner/master

Fix for the NumPy C-API deprecation mechanism.