def _listify(obj):
    """ makes sure `obj` is a `list` """
    if isinstance(obj, str):
        return [obj]
    try:
        # will fail if obj is not iterable
        return list(obj)
    except TypeError:
        return [obj]