in MsgRemovePlayer Dumping dict {0: ('bzbot\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 5), 1: ('NivexLap\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 0), 253: ('Server', -1), 254: ('AllPlayers', -1), 255: ('NoPlayer', -1)} The id is 1 Got key? False Enumerate keys 0 1 253 254 255 Traceback (most recent call last): File "./bzevent.py", line 103, in ? print "%s (%s) has left the game" % (players[id][0], teams(players[id][1])) KeyError: 1