Below code was working well yesterday with my office PC.
from win32com.client import gencache shell = gencache.EnsureDispatch("Shell.Application") w