code: def getEvents(self):
          
          caught_events = self._observer.caught_events
          self._observer.caught_events = []
          for event in caught_events:
              self._observer.activate_event(event["name"])
          return caught_events
docs: Returns a list of all events that have occurred.
  
          Empties the internal queue.