def expand_cell_ranges(range_string):
 cells = []
 for rs in range_string.split():
  cells.extend(rows_from_range(rs))
 return list(chain.from_iterable(cells))

def expand_cell_ranges ( range_string ) : cells = [ ] for rs in range_string . split ( ) : cells . extend ( rows_from_range ( rs ) ) return list ( chain . from_iterable ( cells ) )
expand cell ranges to a sequence of addresses .