Moved winreg import into install-function in install.py since it doesn't exist on non-windows platforms