Thank you Russ. I can't either command to work (both the python3 or python command). I saw these commans from your posts using that command from the LED strips and I tried it based on that awhile ago. I tried it again, just to be sure. The python script runs when I test it in the console and I know the command is being triggered, but still nothing happens on the PI. I did all the commands on background as well.
The script I had running is simply to perform a button click (actually just to pause a video). I even tried a script that outputs appends to a file but still nothing. I even tried EXPORT.DISPLAY=0.0 to no avail.
I assumed the issue was down to the agent being in root and the applications being under the user (based on previous posts). I previously had an issue of launching applications but I found the following command did the trick
"command":"echo user | sudo -S su user -c '<app-location>'"
For some reason though, this doesn't work for python scripts. So <'python script.py'> or even <'python' script.py> or with the python location obtained from "which python". It is the same with python3. I even tried bash scripts and still nothing.