Changing Rotation of Environment Light via Script

Hi Everyone,
I have a scripting question. I wanted to change the rotation of the Environment Light but I can’t seem to set it.

I saw in the documentation here:

that there is ‘staticEnvironmentRotation’ properties but I can’t seem to change it via script. Any of you have any experience on this? Thanks in advance!

I think I had a similar problem before, but I just ended up using the PBRinator patch from Matt Greenhalgh

In some cases I don’t need all the complexity of PBR, so I go with another patch from Matt, the Environment Reflection patch.