Fix python3 syntax error