added python snippet