longest consecutive sequence Python accepted