def is_nonstring_iterable(obj):
 return (isinstance(obj, Iterable) and (not isinstance(obj, string_types)))

def is_nonstring_iterable ( obj ) : return ( isinstance ( obj , Iterable ) and ( not isinstance ( obj , string_types ) ) )
returns whether the obj is an iterable .