def is_iterable(obj):
    """Identifies objects that can be iterated over, including strings."""
    import collections
    try:
        from collections.abc import Iterable
    except ImportError:
        from collections import Iterable
    return isinstance(obj, Iterable)
