better python logging

* added compiler switch for deactivating
* cerr, cout changed to log_*