def combine_common_sections(data):
 sections = []
 sections_dict = {}
 for each in data:
  if (each[u'label'] not in sections_dict):
   sections_dict[each[u'label']] = each
   sections.append(each)
  else:
   sections_dict[each[u'label']][u'items'] += each[u'items']
 return sections

def combine_common_sections ( data ) : sections = [ ] sections_dict = { } for each in data : if ( each [ u'label' ] not in sections_dict ) : sections_dict [ each [ u'label' ] ] = each sections . append ( each ) else : sections_dict [ each [ u'label' ] ] [ u'items' ] += each [ u'items' ] return sections
combine sections declared in separate apps .