code: def remap_hotkey(src, dst, suppress=True, trigger_on_release=False):
      
      def handler():
          active_modifiers = sorted(modifier for modifier, state in _listener.modifier_states.items() if state == 'allowed')
          for modifier in active_modifiers:
              release(modifier)
          send(dst)
          for modifier in reversed(active_modifiers):
              press(modifier)
          return False
      return add_hotkey(src, handler, suppress=suppress, trigger_on_release=trigger_on_release)
docs: Whenever the hotkey `src` is pressed, suppress it and send
      `dst` instead.
  
      Example:
  
          remap('alt+w', 'ctrl+up')