detecting-consecutive-integers-in-a-list python