def _list_from_list_or_value(value):
    """
        Returns a list, regardless of the value is str or list
    """
    if isinstance(value, list):
        return value
    elif isinstance(value, str):
        return [value]
    else:
        raise Exception('type of value not recognized')