'Try to lookup an item of ItemClass type.
See if there are any current or remembered allocations for the key.'

def lookup(self, key):

    if (key in self.allocations):
        return self.allocations[key]
    if (key in self.remembered):
        self.allocations[key] = self.remembered.pop(key)
        return self.allocations[key]
