Yes, you can do this pretty easily with Python.
Basically you have a formula like 5+5 in your INI string. Then you just set the value of anything to Python(YourFormulaString).
With this you could also have formulas like DMG*3 and then run Python(replace(YourFormulaString,"DMG",object('damage')))
Or if you have multiple variables you'd want to use, you should probably have a list that you loop through that knows where to check for the values or stores the necessary values.