Fixed a failure on Python 2.6, logging.StreamHandler was an old-style class in this version.