a bit too overzealous in converting int to Py_ssize_t