This is probably a very old hat for Linux-savy people. You can use ssh
to execute commands on a remote server, just pass them on as an additional argument:
ssh me@my.server.de "cd bla ; ls ; python test.py "
I use double quotes (“) istead of single quotes (‘) to interpret variables. Different commands are separated with semicolon (;). You can use any command you like, but for some reason when I call some GUI I don’t get the output on the command line until the window is closed.