fix python syntax error