A great idea from @mriedel56 would be to look into PySLURM for working with SLURM from within Python. We could add example code for this.