def _dict_merge(dominant, recessive):
    """
    Combines the two dicts. In case of duplicate keys,
    the values of 'dominant' are used.
    """
    for key, value in recessive.items():
        dominant[key] = dominant.setdefault(key, value)
    return dominant