def merge(h1, h2):
    """
    Returns a new dictionary containing the key-value pairs of ``h1`` combined with the key-value pairs of ``h2``.

    Duplicate keys from ``h2`` overwrite keys from ``h1``.

    :param h1: A python dict
    :param h2: A python dict
    :return: A new python dict containing the merged key-value pairs
    """
    ret = {}
    ret.update(h1)
    ret.update(h2)
    return ret