<s>[INST] import tkinter as tk
from tkinter import filedialog
from tkinter import messagebox
import csv
import os
import datetime
from pathlib import Path

def open_file():
    root = tk.Tk()
    root.withdraw()
    filepath = filedialog.askopenfilename(
        title='Select file',
        filetypes=[('CSV files', '*.csv')])
    return filepath

def export_file():
    root = tk.Tk()
    root.withdraw()
    exportpath = filedialog.asksaveasfilename(
        title='Save file',
        defaultextension='.csv',
        filetypes=[('CSV files', '*.csv')])
    return exportpath

def write_to_file(data, filepath):
    with open(filepath, 'w', newline='') as file:
        writer = csv.writer(file)
        for row in data:
            writer.writerow(row)

def read_from_file(filepath):
    data = []
    with open(filepath, 'r') as file:
        reader = csv.reader(file)
        for row in reader:
            data.append(row)
    return data

def main():
    filepath = open_file()
    if not filepath:
        messagebox.showerror("Error", "No file selected")
    else:
        data = read_from_file(filepath)
        processed_data = process_data(data)
        exportpath = export_file()
        if not exportpath:
            messagebox.showerror("Error", "No file selected")
        else:
            write_to_file(processed_data, exportpath)

def process_data(data):
    # Add your data processing logic here
    return data

main()

However, the problem is that every time I open a file or save a file, a new Tkinter window is created in the taskbar. How do I prevent this?[/INST]