def _get_list(dict_, key):
    """get dict_[key] or create this entry as a new list."""
    res = dict_.get(key)
    if res is not None:
        return res
    new = []
    dict_[key] = new
    return new
