def resolve_all(x):
    while isinstance(x, PDFObjRef):
        x = x.resolve()
    if isinstance(x, list):
        x = [ resolve_all(v) for v in x ]
    elif isinstance(x, dict):
        for (k,v) in x.iteritems():
            x[k] = resolve_all(v)
    return x
The function the rebuilds the set of servers
dataset/ETHPy150Open clips/pattern/pattern/web/pdf/pdftypes.py/resolve_all--crossover with--dataset/ETHPy150Open c00w/bitHopper/bitHopper/Logic/ServerLogic.py/rebuild_servers