docs: def get_events(conn, stackname):
      """Get the events in batches and return in chronological order"""
      next = None
      event_list = []
      while 1:
          events = conn.describe_stack_events(stackname, next)
          event_list.append(events)
          if events.next_token is None:
              break
          next = events.next_token
          time.sleep(1)
      return reversed(sum(event_list, []))