Python 2.6 compatibility for LoggingHandler. Closes #66.