This function tries to work out which of the different parallel methods we should use to distribute work between multiple processes.
Detected schemes are “mpi4py”, “scoop”, and if none of these are found, then “multiprocessing”