Migrated pyi-win to 32-bit instead of 64-bit. Also added DEBUG statements. Other minor fixes.

Signed-off-by: Brad Davies <brad93@gmx.com>