def is_non_string_sequence(obj):
 return ((not isinstance(obj, six.string_types)) and isinstance(obj, Sequence))

def is_non_string_sequence ( obj ) : return ( ( not isinstance ( obj , six . string_types ) ) and isinstance ( obj , Sequence ) )
returns true if obj is non-string sequence .