def is_iterable(obj):
    """
    Returns True if an object is iterable and False if it is not.

    This function makes the assumtion that any iterable object can be
    cast as an iterator using the build-in function `iter`. This might
    not be the case, but works within the context of PySCeSToolbox.

    Parameters
    ----------
    obj : object
        Any object that might or might not be iterable.

    Returns
    -------
    bool
        A boolean indicating if `ob` is iterable.
    """
    try:
        iter(obj)
        return True
    except TypeError:
        return False