python3 tests fix