PY3: maxint isn't available in py3

Due to the removal of the distinction between long and int in py3, maxint no longer exists, but maxsize can be used as an equivalent also in py2.