try to make mongologhandler work on python 2.6