Use the subprocess module instead of popen2 to make it work on Windows.
tree47514c15dbb3bec2ece98ec819b0b04f86618f16
drwxr-xr-x - contrib