code: def events(self):
          '''check for events a list of events'''
          ret = []
          while self.out_queue.qsize():
              ret.append(self.out_queue.get())
          return ref events(self):
          '''check for events a list of events'''
          ret = []
          while self.out_queue.qsize():
              ret.append(self.out_queue.get())
          return ret
docs: check for events a list of events