Make tsp_gui.py object oriented

Still didn't manage to enable pylab :(