What you have should work. If you have collision enabled, then you will need to temporarily disable collisions when teleporting the viewpoint.
Code:
viz.collision(0)
viz.MainView.translate(1,0,1)
viz.collision(1)
If you have linked a sensor to the viewpoint, then you will need to apply an offset to the link, instead of translating the viewpoint.