added python solve