def _valid_str(value):
 return (isinstance(value, six.string_types) and (len(value) > 0))

def _valid_str ( value ) : return ( isinstance ( value , six . string_types ) and ( len ( value ) > 0 ) )
valid str? .