def get_option_value(opt_name, default_value, *confs):
    """ assume that opts[0].priority > opts[1].priority > ... """
    for opts in confs:
        if opt_name in opts and opts[opt_name] is not None:
            return opts[opt_name]
    return default_value
