def CollectAff4Objects(paths, client_id, token):
 object_urns = {}
 for path in paths:
  aff4_object = client_id.Add(path)
  object_urns[str(aff4_object)] = aff4_object
 objects = {fd.urn: fd for fd in aff4.FACTORY.MultiOpen(object_urns, token=token)}
 return objects

def CollectAff4Objects ( paths , client_id , token ) : object_urns = { } for path in paths : aff4_object = client_id . Add ( path ) object_urns [ str ( aff4_object ) ] = aff4_object objects = { fd . urn : fd for fd in aff4 . FACTORY . MultiOpen ( object_urns , token = token ) } return objects
mimics the logic in aff4_grr .