code: def group2commdct(commdct, glist):
      
      for (gname, objname), commitem in zip(glist, commdct):
          commitem[0]['group'] = gname
          commitem[0]['idfobj'] = objname
      return commdct
docs: add group info tocomdct