Python support for Windows

Is it worth turning this into a macro now it's being used a bit.