Grouping polygon and textstims

Is there any way to ‘grouping’ the objects like visual.textstim or visual.circle?
I am trying to control them together. like
groupA=[circle1, circle2]
groupA.opacity = 0

In this case, I got an error like below.
AttributeError: ‘list’ object has no attribute ‘opacity’

 group_A = [circle_1, circle_2]
 
 for item_A in group_A: item_A.opacity = 0

Above code works.
If there is any smarter way, please let me know.

Yes, iterating over a list of objects is the general way to approach this in Python.