def _dict_to_list_ids(objects):
 list_with_ids = []
 for (key, value) in six.iteritems(objects):
  element = {'id': key}
  element.update(value)
  list_with_ids.append(element)
 return list_with_ids

def _dict_to_list_ids ( objects ) : list_with_ids = [ ] for ( key , value ) in six . iteritems ( objects ) : element = { 'id' : key } element . update ( value ) list_with_ids . append ( element ) return list_with_ids
convert a dictionary to a list of dictionaries .