Amulet Minecraft Editor world_temp data restore

  minecraft, python

I am trying to retrieve stored data for a minecraft world that I edited using amulet editor. they have provided me with the code to unpack the chunk data. According to the dev I need to load the data unpack it and put it back into the world. If anyone has tried to figure this out before or can help me please do. I accidentally cut out a portion of the world and have the saved World_temp data from amulet from before I made edits.

Source: Python Questions