[pyqgis-console] again more fixes and cleanup (for the editor)