def listify(s):
    """
    Converts s into a list if not already. If s is None, an empty list will be returned.
    """
    if s is None:
        s = []
    elif isinstance(s, (set, tuple)):
        s = [i for i in s]
    elif not isinstance(s, list):
        s = [s]
    return s