added python syntax checking