[pyqgis-console] close bracket automatically