added python logging