added the python code that builds the text corpus