python logging handler stdout