Ignore all lights and cameras from xRef Scenes

Hello,

I'm not understanding how i can "select" all xrefs and set their properties to:
.ignoreLights true
.ignoreCameras true

Love to have some help.

Something like:
for i in ...

Thanks