Use threading instead of multiprocessing.

This will hopefully speed up execution on Windows.