rewritten for python 3, no longer compatible with 2

Rewritten for P3 to solve several issues with the winword plugin which
uses the win32com package