Each python function should have a way to turn off parallel processing. Then, each top level script, e.g., generateDataAndRun.sh, may use a setting to control the use of multiprocessing.