[gdaltools] SIP API update
Only cleanup python on exit if loaded
Fix #8085