def do(self, action): self.info.update() Stupid.one_second_pls() self._close_popups() if action == 'upgrade_lowest': self._upgrade_lowest() elif action == 'next_city': self._change_city('next') elif action == 'prev_city': self._change_city('prev')