Use Py_ssize_t for index variables