python logging streamhandler stdout stderr