Fix python 2.6 error in logging

I'll use tox next time...