added python sample code