streamhandler fix

This should fix an issue between py2.4/py2.6 and py2.7+ initialisation of the logging.StreamHandler