ThreadPool.py: Alternated to Queue instead of list for storing works