test also with python 3.4
maxint -> maxsize.
don't use deprecated modules, update tests for py3.