def get_val(dictionary, key, dict_name):
    if (key not in dictionary):
        raise KeyError(('%s has no %s key specified' % (dict_name, key)))
    return dictionary[key]
def get_val(dictionary, key, dict_name):
    if (key not in dictionary):
        raise KeyError(('%s has no %s key specified' % (dict_name, key)))
    return dictionary[key]