Index: /trunk/src/VBox/Main/glue/vboxapi.py
===================================================================
--- /trunk/src/VBox/Main/glue/vboxapi.py	(revision 19854)
+++ /trunk/src/VBox/Main/glue/vboxapi.py	(revision 19855)
@@ -50,5 +50,5 @@
     class InterfacesWrapper:
             def __init__(self):
-                self.__dict__['_rootFake'] = ConstantFake(None, None)
+                self.__dict__['_rootFake'] = PlatformMSCOM.ConstantFake(None, None)
 
             def __getattr__(self, a):
@@ -83,16 +83,19 @@
             import pythoncom
             import win32api
-            #win32com.client.gencache.EnsureDispatch('VirtualBox.Session')
+            self.constants = PlatformMSCOM.InterfacesWrapper()
+            win32com.client.gencache.EnsureDispatch('VirtualBox.Session')
 
     def getSessionObject(self):
+        import win32com
         from win32com.client import Dispatch
         return win32com.client.Dispatch("{3C02F46D-C9D2-4f11-A384-53F0CF917214}")
 
     def getVirtualBox(self):
+	import win32com
         from win32com.client import Dispatch
         return win32com.client.Dispatch("{3C02F46D-C9D2-4f11-A384-53F0CF917214}")
 
     def getConstants(self):
-        return InterfacesWrapper()
+        return self.constants
     
     def getType(self):
