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