Small Fixes

* add cmake flag for disabling python extensions
* add missing if-guard for supressing debug output.