def issequence(target):
    """
        Check if item is a sequence. If it has "strip" method, it is a string and not a
        tuple or a list
        @credit to stevenha on stackoverflow and the following link for this method
        https://stackoverflow.com/questions/1835018/how-to-check-if-an-object-is-a-list-or-tuple-but-not-string
        :param target: The target to be evaluated
        :return: boolean indicating whether the target is a sequence
    """
    return (not hasattr(target, 'strip') and hasattr(target, "__getitem__")
            or hasattr(target, "__iter__"))