fix python syntax