[python] How to get the first word in the string