use numpy PyArray_SimpleNewFromData.

do not trust cython's pointer conversion.

Also import_array explicitly.