As Zen of Python says:
There should be one– and preferably only one –obvious way to do it.
I can't decide which one of the following lines is better:
ps.cfg is a python dict
if cfg.get("runner") is None:
if "runner" not in cfg:
Is one of them obviously better, or could we say that they are both OK?