Use Py_ssize_t instead of long to handle 64bit indices