How to run python script from remote?

I do have a python script which I am using locally in terminal, works great. Since it is using Apple specific stuff, I have to use my Mac to run it, it does not work on Unix or Windows machines. Now I need to run the script from remote (my webserver) and parse / save the output of it. I have thought to activate Apache and PHP on my Mac, but I don't want to give access to everyone either, so this is maybe not the best. Does anyone have an idea how to do this? Any hint is appreciated!

How to run python script from remote?
 
 
Q