fix py3 tests