Added Python3 support (backwards compat) and it works with windows