Main.wm.setKeybindingHandler has been replaced by Meta.keybindings_set_custom_handler, which has also a different signature.