def METHOD_NAME(self, hwnd, msg, wParam, lParam):
    try:
        result = self.message_handlers[msg](msg, wParam, lParam)
    except KeyError:
        # print "no handler for", msg
        result = 0
    if not result and msg != WM_CLOSE:
        result = user32.DefWindowProcW(hwnd, msg, wParam, lParam)
    return result