You can have a look at the @parallel decorator : http://doc.sagemath.org/html/en/reference/parallel/sage/parallel/decorate.html#sage.parallel.decorate.parallel