use PyArray_ContiguousFromAny and PyArray_ZEROS, should fix warnings