python script to reset glyph scale factor using current data values

Hi,
I am using the python tracing feature to write a script that I will use for multiple models but I want to reset the glyph scale factor with respect to each specific model.
using the user interface it is simple and straight forward but in the script it saves a value that is specific for one model.

How can I write the script to reset that factor depending on each case? if I am not mistaken, this line should be changed:

> # Properties modified on glyph1

glyph1.ScaleFactor = 5.170302447514938e-05