Here is part of a stack-trace from a recent run of an unreliable application written in Python which controls another application written in Excel:
pywintype
Do it like this:
try: [whatever code] except pythoncom.com_error as error: print(win32api.FormatMessage(error.excepinfo[5]))
More information on digesting the pythoncom.com_error object here: http://docs.activestate.com/activepython/3.2/pywin32/com_error.html