python logging handler formatter