python logging streamhandler sys stdout