How can we access the experiment settings (e.g. chosen units) in python script?

Is there a way to access the experiment settings such as screen.units in the code?

actually I figured it’s all under win e.g. win.units