Revise the threadpool.py