python code to make trigram files from raw text.