Modified to sip API 2.0 and Qgis API 2.0
compilation of previosu code modification