use dict.get() / update() methods.