Handle renaming of "thread" to "_thread" in PY3
Merge pull request #360 from fantix/thread_renaming

Handle renaming of "thread" to "_thread" in PY3