Here's example code that uses the newline character to create multiple lines in a text object:
Code:
import viz
viz.go()
gallery = viz.addChild('gallery.osgb')
text = viz.addText('line 1\nline 2\nline 3',parent=viz.SCREEN,pos=[0.5,0.5,0])
text.alignment(viz.ALIGN_CENTER)