DEP: replaced arr->dimensions with PyArray_DIMS(arr) or PyArray_DIM(arr,i)
Replaced arr->descr, arr->flags and arr->base with the PyArray_* functions