PyQGIS Plugin development python and qgis inv