Need to use deepcopy()
Merge pull request #8611 from techhat/deepcopy

Need to use deepcopy()