I'm not familiar with any engine so I have decided to make a plain python file using the command terminal
You might be able to copy and paste your code into a Python browser implementation like Python Trinket
https://trinket.io/features/python3
Then just link to your trinket.