fix python2-isms and stop logging