ThreadPool should be replaced by python [futures.Executor](https://docs.python.org/3.5/library/concurrent.futures.html)