Fix some examples for the visualizer - Python 3 support