pep8-ified editor.py

Change-Id: I012471704402ad1b6efe9fced20530eee660bb1f