def METHOD_NAME(font):
  uc2names = {}  # { 2126: ['Omega', ...], ...}
  name2ucs = {}  # { 'Omega': [2126, ...], '.notdef': [], ...}
  for g in font:
    name = g.name
    ucs = g.unicodes
    name2ucs[name] = ucs
    for uc in ucs:
      names = uc2names.setdefault(uc, [])
      if name not in names:
        names.append(name)
  return uc2names, name2ucs