def get_session(self):
        """Return a Session interface

        :rtype: library.ISession
        """
        # The inconsistent vboxapi implementation makes this annoying...
        if hasattr(self.manager, 'mgr'):
            manager = getattr(self.manager, 'mgr')
        else:
            manager = self.manager
        return Session(interface=manager.getSessionObject(None))
def get_session ( self ) : if hasattr ( self . manager , 'mgr' ) : manager = getattr ( self . manager , 'mgr' ) else : manager = self . manager return Session ( interface = manager . getSessionObject ( None ) )
Return a Session interface

        :rtype: library.ISession