def is_select(status):
 if (not status):
  return False
 return (status.split(None, 1)[0].lower() == u'select')

def is_select ( status ) : if ( not status ) : return False return ( status . split ( None , 1 ) [ 0 ] . lower ( ) == u'select' )
returns true if the first word in status is select .