def _is_sequence(obj):
    """Check for iterable object that is not a string ('strip' is a method on str)
    """
    return not hasattr(obj, "strip") \
        and (hasattr(obj, "__getitem__") or hasattr(obj, "__iter__"))