Upload Pipeline (slp file) to Groundplex/Snaplex via Script

I’m looking for a way to upload a pipeline (slp file) stored locally to a groundplex or snaplex via a Python script. I can’t find any documentation on this. Is this possible?

I would also like the pipeline to execute automatically after loading.