@contextmanager
def step_down(self, i, subtiles):
    if (self.level_progresses is None):
        self.level_progresses = []
    self.level_progresses = self.level_progresses[:self.level_progresses_level]
    self.level_progresses.append((i, subtiles))
    self.level_progresses_level += 1
    self.progress_str_parts.append(status_symbol(i, subtiles))
    self.level_progress_percentages.append((self.level_progress_percentages[(- 1)] / subtiles))
    (yield)
    self.level_progress_percentages.pop()
    self.progress_str_parts.pop()
    self.level_progresses_level -= 1
    if (self.level_progresses_level == 0):
        self.level_progresses = []
@contextmanager
def step_down(self, i, subtiles):
    if (self.level_progresses is None):
        self.level_progresses = []
    self.level_progresses = self.level_progresses[:self.level_progresses_level]
    self.level_progresses.append((i, subtiles))
    self.level_progresses_level += 1
    self.progress_str_parts.append(status_symbol(i, subtiles))
    self.level_progress_percentages.append((self.level_progress_percentages[(- 1)] / subtiles))
    (yield)
    self.level_progress_percentages.pop()
    self.progress_str_parts.pop()
    self.level_progresses_level -= 1
    if (self.level_progresses_level == 0):
        self.level_progresses = []