What is the reason why deleting the gen py solves the no attribute 'CLSIDToPackageMap'? In several places there were solutions (which all involved deleting a folder in temp/gen_py, but the only explanation I found was the answer here which explains this is because of a switch from late to early binding. My questions are then:
(1) Why does this switch occur?
(2) Why does deleting the folder in gen_py solve this problem?
See also:
python 3.x - Why am I suddenly getting a no attribute 'CLSIDToPackageMap' error with win32com.client? - Stack Overflow
Fix for module win32com.gen_py has no attribute 'CLSIDToPackageMap' (github.com)
python-win32com excel com model started generating errors - Stack Overflow