--- a/script.web.viewer/lib/webviewer/mechanize/_msiecookiejar.py
+++ b/script.web.viewer/lib/webviewer/mechanize/_msiecookiejar.py
@@ -12,8 +12,10 @@
 # XXX names and comments are not great here
 
 import os, re, time, struct, logging
-if os.name == "nt":
-    import _winreg
+
+#For Web Viewer at least on XBMC 4 Xbox
+#if os.name == "nt":
+#    import _winreg
 
 from _clientcookie import FileCookieJar, CookieJar, Cookie, \
      MISSING_FILENAME_TEXT, LoadError
@@ -22,10 +24,10 @@
 
 
 def regload(path, leaf):
-    key = _winreg.OpenKey(_winreg.HKEY_CURRENT_USER, path, 0,
-                          _winreg.KEY_ALL_ACCESS)
+    key = _winreg.OpenKey(_winreg.HKEY_CURRENT_USER, path, 0, #@UndefinedVariable
+                          _winreg.KEY_ALL_ACCESS) #@UndefinedVariable
     try:
-        value = _winreg.QueryValueEx(key, leaf)[0]
+        value = _winreg.QueryValueEx(key, leaf)[0] #@UndefinedVariable
     except WindowsError:
         value = None
     return value