Text edit written in python