Change dimensions using external Python script

Hi there. I am new to Rhino as well as Rhino-Python integration. Does anyone know how to change a Rhino object’s dimensions or properties using an external Python script? I have a script that optimizes various properties based on safety factors, and I would like to automatically adjust the Rhino geometry based on the properties output by that script.

I apologize if there’s a similar post on here already. Thank you!

With scripting you can adjust existing Rhino geometry in the same way you can via the normal Rhino commands - moving, rotating, scaling etc. You can also construct anything based on parameters, replace an existing object with a new one, etc. Grasshopper is also a way to create and manipulate geometry parametrically in Rhino.