Cant get values from Mental Ray Render Settings

I am trying to write a script that gets and stores values from some of the Final Gather settings. The ones I am having trouble with are Final Gather Mode and Normal Tolerance. I turn on “Echo all Commands” in the Script Editor, and when I try to change them, all I see are commands that don’t make any sense to me. I can’t see how my value is passed in, so I can’t figure out how to set and store it through scripts. Could anyone help me with this?

Thank you for the help.

If you change some other values inside the 'Indirect Lighting' tab you will see that the accessed node is "miDefaultOptions". Now you could select the node via the select command and load it into the connection editor to get the full attribute list. The first attribute you are searching for should be .finalgatherMode, for the other one you need to dig a bit deeper. Use the MEL command "whatIs miSetFGNormalToleranceValue" to trace down the wrapper script location, then search inside the file for the procedure entry and what command it uses to change the normal tolerance.