How to Solve NameError: name 'Thread' is not defined -- Threading
Solution: Import the 'Thread' module
To Solve the error, add the following line to the top of your code.
from Threading import Thread
For more information:
Python Threading Thread