editor.py : Refactoring to comply with pep8 standards