Use python threading module instead of the python3 deprecated thread module. Fix this threading related bug - Exception AttributeError: AttributeError("_DummyThread object has no attribute _Thread__block",) in <module threading from
Fix unit test breakage. middleware functions are expecting threading.currentThread().ident, which is an integer, and not the threading.currentThread() instance itself.
Uncommented out the dummy thread fix by mistake. Adding back in.
Merge pull request #333 from calvinchengx/master

Use threading instead of thread. Resolve _DummyThread bug.