You can use
<window>.stereo to set most stereo modes after the
viz.go() statement:
Code:
import viz
viz.go()
gallery = viz.add('gallery.ive')
vizact.onkeydown('1',viz.MainWindow.stereo,viz.OFF)
vizact.onkeydown('2',viz.MainWindow.stereo,viz.ANAGLYPHIC)