Rework of the Py_ssize_t patch for PyPy

Fixes #363