code: def erase(self, message=None):
          
          if not message:
              message = self.last_message
          # Move cursor to the beginning of line
          super(Animation, self).write("\033[G")
          # Erase in line from cursor
          super(Animation, self).write("\033[K")
docs: Erase something whose you write before: message