Changed background process to use threading instead of thread. Not sure if the GIL causes problems here. Might need to use a multiprocessing solution or something else