Use Py_ssize_t instead of long