def _merge_ex_dicts(sexdict, oexdict):
    """Merge callable look-up tables from two objects."""
    for okey, ovalue in oexdict.items():
        if okey in sexdict:
            svalue = sexdict[okey]
            for fkey, fvalue in ovalue.items():
                if fkey not in svalue:
                    sexdict[okey][fkey] = fvalue
                else:
                    iobj = zip(fvalue['function'], fvalue['raised'])
                    for func, raised in iobj:
                        if func not in sexdict[okey][fkey]['function']:
                            sexdict[okey][fkey]['function'].append(func)
                            sexdict[okey][fkey]['raised'].append(raised)
                        else:
                            idx = sexdict[okey][fkey]['function'].index(func)
                            sraised = sexdict[okey][fkey]['raised'][idx]
                            if sraised or raised:
                                sexdict[okey][fkey]['raised'][idx] = True
        else:
            sexdict[okey] = ovalue
