Make the Python bindings not use deprecated NumPy 1.7 API