python logging change log level at runtime