use deepcopy where possible

It's shorter and conveys intent better.

Created by  akkartik  on June 23, 2024
EB6LHFJRSQIQWC3M5CZWOLG7PX3HHO2ZQ2TGMBCOLUBDZSP7CJZAC
Change contents