finished python implementation
added python sample