update visualizer core py