Pep8 changes (with a stray .keys() removed)
--loglevel should go to args.loglevel, not args.log_level, because this makes more sense.