remove references to deprecated Numpy API, use #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION