Rename on_selection_modified method
Refactoring with 2to3 tool
Fix relative import
Remove begin_edit() and end_edit()
Fix bytes to string error