def FromImport(modname, *names):
    """Dynamic version of the `from mod import ...` syntax.
    Equivalent to `from modname import name[0],name[1],...`, except that the
    imported objects are returned as a list instead of being assigned to
    variables matching the names.
    """
    mod = __import__(modname, globals(), locals(), names)
    return [getattr(mod, name) for name in names]