fix python3 tests