Simple Text Editor written in python