added logging support for python high level control