def _merge_dicts(*dicts, **opts):
    """
    The standard dictionary merge idiom, with a twist: an *opts*
    keyword dictionary.
    """
    target = opts
    for d in dicts:
        target.update(d)

    return target