python logging adjustments