Maximum Consecutive Increasingly Ordered Substring In Python