fixed python syntax error