Add support for python 2.6 to logging
Replace multi-context with for python 2.6