fix python3 test error