fix syntax error in python3