ENH Remove use of deprecated APIs

This consisted of removing direct access to PyArrayObject members.
ENH Remove import_array unused warnings