Create threadpool.py