Distribute the jobs over different nodes, written in python