Hey @oladosuZ2AY9, it depends on what you mean by "tweaked from python script". If you read the README in the FlexSimPy github repo, it states:

FlexSim ships with PyConnector dlls for Python versions 3.9-3.12 (found in Program Files\FlexSim\program\python). It's possible to setup a Python script to return values for processing time that a Processor would use.
The FlexSimPy project is used for controlling the FlexSim application itself. If we look in the code on github, we can see some of the functionality exposed to the user:

Most of it has to do with running and stopping a model, getting and setting parameters, and receiving performance measurements.
Hope this helps.