def METHOD_NAME(self, _, args):
    try:
        return_value = args.get_WebMessageAsJson()
        func_name, func_param, value_id = json.loads(return_value)
        if func_name == 'alert':
            WinForms.MessageBox.Show(func_param)
        elif func_name == 'console':
            print(func_param)
        else:
            js_bridge_call(self.pywebview_window, func_name, func_param, value_id)
    except Exception:
        logger.exception('Exception occurred during on_script_notify')