fix python3 syntax error