Identify groups of continuous numbers in a list Identify groups of continuous numbers in a list python python