Wrap a few long lines in tree_editor.py
Fix occurrences of E501