Aka: Fix crash when logging (on Python 2).