def build_year_spans(year_spans_str):
 spans = []
 for elem in year_spans_str:
  spans.append(span_from_str(elem))
 complete_year_spans(spans)
 return spans

def build_year_spans ( year_spans_str ) : spans = [ ] for elem in year_spans_str : spans . append ( span_from_str ( elem ) ) complete_year_spans ( spans ) return spans
build a chronologically ordered list of spans dict from unordered spans stringlist .