Pausing between tasks

I am trying to use CrewAI to improve the performance of a Python file model.py. The workflow is:

  • Read model.py and the existing results.csv
  • Modify model.py
  • Run model.py again, which generates results.csv again
  • Do the process for a given number of iterations

After the agent modifies the file, I want to run it so it saves the results which I can then pass on to the other task to further modify it.

I thought about running getting CrewAI to run model.py, however the file requires a certain library that is only available in Python 3.8, which is incompatible with CrewAI.

Thanks in advance.