code: def getEvent(self, name):
          
          to_return = None
          for event in self._observer.caught_events:
              if event["name"] == name:
                  to_return = event
                  break
          if to_return:
              self._observer.caught_events.remove(to_return)
              self._observer.activate_event(to_return["name"])
          return to_return
docs: Returns the named event.
  
          Removes it from the internal queue.