Ensure obj is iterable.

def make_iterable(obj, default=None):
    """ Ensure obj is iterable. """
    if obj is None:
        return default or []
    if isinstance(obj, (compat.string_types, compat.integer_types)):
        return [obj]
    return obj