def enforce_list(var):
    """ Enforces a list of elements

    If a single, non-list element is given, a list with one element is returned

    args:
        var: list or single element
    returns:
        given list or single element list holding the given var parameter
    """
    if type(var) is not list:
        return [var]
    else:
        return var