Npen module allows python coders to edit/create text files from python with lesser lines of code. Have a look at how Npen reduces the lines of code.