Python Tkinter Button Command Partial Derivative In Physics