Update controller/visualizer.py

visualizer fix for mac