def is_sequence(arg):
    """
    Checks if arg is a sequence
    """
    if isinstance(arg, str):
        return False
    return not hasattr(arg, 'strip') and hasattr(arg, '__getitem__'
        ) or hasattr(arg, '__iter__')
