[pyqgis-console] small fixes