added python solution to 122