Running MadMax From A Python Script Ubuntu 20.04

Hello all!
Sorry if this is a really stupid question but I was just wondering how I could run MadMax from a python script. I am really new and any help would be greatly appreciated. I was thinking and trying to use subprocess.run but I couldn’t get it to work.

This is where MadMax is located on my device:
/home/farmer/chia-plotter/build/chia-plot

My Temp drives are:
/home/farmer/Documents/ramdisk1/
/home/farmer/Documents/ramdisk1/

Thanks for your time!

This plot manager is implemented in python and is capable of running MadMax.

You can use it as-is or just inspect source code for examples how to run MadMax yourself from a python script

why are you using a Python script and not a simple bash script?

If you really want to use Python then its as simple as running a bash command from Python e.g. from subprocess.Popen or similar. But you will get a better experience from bash