Create poolthread.py