Use threading.local() instead of threading.currentThread().
1 file changed