[pyqgis-console] fix autocompletion in editor after 6e19748