Changed Py_ssize_t to np.int64_t to be more consistent with the types across the module