a Simple Text Editor in py3k