def is_non_string_iterable(obj):
 return ((not isinstance(obj, six.string_types)) and isinstance(obj, Iterable))

def is_non_string_iterable ( obj ) : return ( ( not isinstance ( obj , six . string_types ) ) and isinstance ( obj , Iterable ) )
returns true if obj is non-string iterable .