python create list of ranges