#NEWLINE# def extractWord( text ) : #NEWLINE# #INDENT# if ( not text ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# l = text . split ( None , 1 ) #NEWLINE# word = text [ 0 ] #NEWLINE# try : #NEWLINE# #INDENT# text = l [ 1 ] #NEWLINE# #UNINDENT# except IndexError : #NEWLINE# #INDENT# text = '' #NEWLINE# #UNINDENT# return ( word , text )