Update threadpool.py