Python Tkinter Button Command Partial Derivative Problems