def __init__(self, f, objmap, shortcuts=None):
pickle.Unpickler.__init__(self, f)
if shortcuts:
objmap = dict((k % shortcuts, v % shortcuts)
for k, v in objmap.items())
self._objmap = objmap