def cat_dict_tuples(d1, d2):
    """Concatenate tuples across two dictionaries when keys match"""
    res = d1.copy()

    for k2, v2 in d2.iteritems():
        res[k2] = res[k2] + d2[k2]

    return res