<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def keep_only_current_window(self):
 """ Close all other windows, except the current one. """

        self.tab_pages = [TabPage(self.active_tab.active_window)]
        self.active_tab_index = 0