def restore_mode(self):
    if (len(self.flag_store) > 0):
        self.previous_flags = self.flags
        self.flags = self.flag_store.pop()
        if (self.previous_flags.mode == MODE.Statement):
            self.remove_redundant_indentation(self.previous_flags)
def restore_mode(self):
    if (len(self.flag_store) > 0):
        self.previous_flags = self.flags
        self.flags = self.flag_store.pop()
        if (self.previous_flags.mode == MODE.Statement):
            self.remove_redundant_indentation(self.previous_flags)