python: execute: bugfix when not using subprocess shell
python: execute: better logging