Change free to PyArray_free, and formatting changes