Hi,
Can you try run the script below to remove the cache file?
import win32com
import shutil
path = win32com.__gen_path__
shutil.rmtree(path)
After that please restart your Jupyter Notebook or refresh your IDE before rerun the script.
Hope this help.
Best regards,
Kah Em