A simple threadpool written in Python