code: def safe_either(method, dictionary, key1, key2, default_value=None):
          
          value = method(dictionary, key1)
          return value if value is not None else method(dictionary, key2, default_value)
docs: A helper-wrapper for the safe_value_2() family.