[pyqgis-console] fixes for the new SIP APIs