small changes for py3 support
test 33, 34, pypy