from util import RemoteMap

class Tabpage(object):
    @property
    def windows(self):
        if not hasattr(self, '_windows'):
            self._windows = RemoteSequence(self,
                                           self.Window,
                                           lambda: self.get_windows())
        return self._windows

    @property
    def vars(self):
        if not hasattr(self, '_vars'):
            self._vars = RemoteMap(lambda k: self.get_var(k),
                                   lambda k, v: self.set_var(k, v))
        return self._vars

    @property
    def number(self):
        return self._handle

    @property
    def window(self):
        return self.get_window()

    @property
    def valid(self):
        return self.is_valid()

@@ -19,16 +19,32 @@
 emoteMap
+, RemoteSequence
 %0A%0Aclass 
@@ -236,16 +236,21 @@
    self.
+_vim.
 Window,%0A

Fix 'windows' property of Tabpage objects