Yeah, sorry.

Would it be more robust to do copy.deepcopy() instead in case any of the elements of the list also get unexpectedly changed?