python first word of each line