In builddatapack.sh, the simulation is run 40 times. All data is bundled into a datapack using mkdir, mv, zip, and rm. Finding a pythonic way to do this would increase the number of operating systems that could use dice-mechanic-sim.
zipfile should work.