Python 3 plot class for Tkinter