def combineDicts(master,new):
    """
    instead of a dict of dicts of arbitrary depth, use a dict of tuples to store.
    """

    for (keysequence, valuesequence) in flatten(new):
        try:
            master[keysequence] = map(sum,zip(master[keysequence],valuesequence))
        except __HOLE__:
            master[keysequence] = valuesequence
    return dict1
dataset/ETHPy150Open Bookworm-project/BookwormDB/bookwormDB/MetaWorm.py/combineDicts