python logging get log level from string