Fix python syntax error