Run remote Python script on Gateway

jrd, see tips on How to post code on this forum.