A python script that runs in a terminal should be able to run anywhere, just like a bash shell script, but its not really that straighforward. On macOS only an outdated version of Python is installed ...