added python flip ascent functionality