code: def handle_events(self):
          
          for event in pymlgame.get_events():
              if event.type == E_NEWCTLR:
                  #print(datetime.now(), '### new player connected with uid', event.uid)
                  self.players[event.uid] = {'name': 'alien_{}'.format(event.uid), 'score': 0}
              elif event.type == E_DISCONNECT:
                  #print(datetime.now(), '### player with uid {} disconnected'.format(event.uid))
                  self.players.pop(event.uid)
              elif event.type == E_KEYDOWN:
                  #print(datetime.now(), '###', self.players[event.uid]['name'], 'pressed', event.button)
                  self.colors.append(self.colors.pop(0))
              elif event.type == E_KEYUP:
                  #print(datetime.now(), '###', self.players[event.uid]['name'], 'released', event.button)
                  self.colors.append(self.colors.pop(0))
              elif event.type == E_PING:
                  #print(datetime.now(), '### ping from', self.players[event.uid]['name'])
                  pass
docs: Loop through all events.