Fixed exception handling in worker threads, multithreading with python, added initial work queue so that stdin doesn't have to be used.