def METHOD_NAME(tag, keywords):
    """
    Replace tkfile open/save method with external calls to runGtkDialogs.
    """
    global oldopen, oldsave
    c = keywords.get('c')
    if not c:
        return
    global pythoncommand
    oldopen = g.app.gui.runOpenFileDialog
    oldsave = g.app.gui.runSaveFileDialog
    g.funcToMethod(runOpenFileDialog, g.app.gui)
    g.funcToMethod(runSaveFileDialog, g.app.gui)
    pythoncommand = c.config.getString('gtkdialogs_pythoncommand')