The maximum of Py_ssize_t is the more relevant value here.  Plus there is no maxint on Python 3.
bytes for filenames elsewhere, too.
Don't use the deprecated assertEquals
Drop ancient Python 2.3 support which used deprecated unittest apis.
Lots of Python 3.2 porting work