Change from threading to multiprocessing library to avoid Python
thread deadlocking.