Added texteditor.py

Python solution