editor.py : Implemented line numbers
* : Refactoring
editor.py : Refactoring to comply with pep8 standards