Prototyped manual use of threads in dag.shell.

multiprocessing in python is terrible.