py3 tests fix