def listlike(var):
    """
    Takes a variable and returns the variable in a list if it is not already a list
    :param var: variable
    :return: List
    """
    if isinstance(var, list):
        return var
    else:
        return [var]