def is_none_string(val):
 if (not isinstance(val, six.string_types)):
  return False
 return (val.lower() == 'none')

def is_none_string ( val ) : if ( not isinstance ( val , six . string_types ) ) : return False return ( val . lower ( ) == 'none' )
check if a string represents a none value .