Here is my code. It works how I want it to but I have always been told it is poor coding practice to use global variables and that they can cause problems, although I cannot figure out how to get the labels to change without using them. Any help is appreciated.

```
import tkinter as tk
from tkinter import filedialog, Text
import os

status = 'Start'
startStopBG = 'light green'

def main():
    root = configure_screen()
    root.mainloop()

def configure_screen():
    root = tk.Tk()
    root.title('APP')
    root.config(bg='snow3')
    root.minsize(700, 700)

    browse_button = tk.Button(root, text='Browse', width='10', command=browse)
    browse_button.place(x=605, y=10)

    global text
    text = tk.Text(root, height=1.3, width=73)
    text.insert(tk.END, 'Enter Path to Storage HERE')
    text.place(x=10, y=13)

    global start_stop
    start_stop = tk.Button(root, height=1, width=12, text=status, bg=startStopBG,
                           font=('Helvetica', '40'), command=start_scanning)
    start_stop.pack(pady=50)
    return root

def browse():
    path = filedialog.askdirectory(initialdir='/', title='Select where you want to save your file')
    text.delete('1.0', tk.END)
    text.insert(tk.END, path)

def start_scanning():
    global status
    global startStopBG
    global start_stop
    if status == 'Start':
        status = 'Stop'
        startStopBG = 'red'
    else:
        status = 'Start'
        startStopBG = 'light green'
    start_stop.config(text=status, bg=startStopBG)

if __name__ == '__main__':
    main()

```