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