Fixed python3 tests