def _aslist(arg):
    """Converts anything to a list. Non-iterables become single-element lists."""
    try:
        return list(arg)
    except TypeError:  # excepts TypeError: '<type>' object is not iterable
        return [arg]