Fix logging for Python 2.x

TODO: Investigate why tox did not catch this.