def listify(x):
    """If x is a list, nothing is done, else create a one element list out
    of it.

    Parameters
    ----------
    x : type
        can be anything.

    Returns
    -------
    list
        either x is a list or a list containing x.

    """
    return x if isinstance(x, list) else [x]