Fast X Free -

def put(self, file_id, node): self.nodes[file_id] = node