Fixed Py_ssize_t bugs.