fix logging for python 2.6