def is_listlike(x):
 return (hasattr(x, '__iter__') and (not isinstance(x, (six.text_type, bytes))))

def is_listlike ( x ) : return ( hasattr ( x , '__iter__' ) and ( not isinstance ( x , ( six . text_type , bytes ) ) ) )
is this a sequence that isnt like a string or bytes? .