Writing Efficient Python Code Editor