From what I have tried on this forum, python scripts must be stored in the gateway to be ran, and in order to run those scripts, the python exe needs to be stored in the gateway as well. Because you are using python 3, you would have to install python 3 in the gateway. I still havent figured out how to do this.