A Simple python script to process text files