Fix logging on Python 3.4 by not accessing logging internals