Fixed "winreg" compatibility issue between Python 2.x/3.x