tests pass in py3 and pypy