Hi have a look at the PiCtory variable names and adapt the script accordingly. There is also the "ipython3" package available that you may install via "sudo apt install ipython3" which lets you interactively execute Python scripts.
For revpimodio support please use the RevPiModIO board.