Revert logger changes, they break compatibility with python versions below 3.3