Bugfixes for Python 3
Temporary fix for unicode logging issues with Python 2.x