python set logging level from environment variable