@staticmethod
def safe_either(method, dictionary, key1, key2, default_value=None):
    'A helper-wrapper for the safe_value_2() family.'
    value = method(dictionary, key1)
    return (value if (value is not None) else method(dictionary, key2, default_value))
A helper-wrapper for the safe_value_2() family.
@staticmethod
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))