from typing import Iterable
import six


def is_iterable(arg):
    """
    Returns True if object is an iterable and is not a string, false otherwise
    """
    return isinstance(arg, Iterable) and not isinstance(arg, six.string_types)