Fixed logging.StreamHandler for Python 2.6

Between Python 2.6 and 2.7, the StreamHandler parameters has been updated.