update logging level name usage so it works with python3.4 as well as earlier