I have a python code in which I have a function that I want to go through a list of object instances and make changes to those instances if a certain condition is met. In other