code: def keysym_to_keycodes(self, keysym):
          
          try:
              # Copy the map list, reversing the arguments
              return map(lambda x: (x[1], x[0]), self._keymap_syms[keysym])
          except KeyError:
              return []
docs: Look up all the keycodes that is bound to keysym. A list of
          tuples (keycode, index) is returned, sorted primarily on the
          lowest index and secondarily on the lowest keycode.