you use nuke.Root() like a node object, so the usual knob methods apply:
CODE
nuke.Root().knob('fps').value()
nuke.Root().knob('fps').setValue()
or shorter:
CODE
nuke.Root()['fps'].value()
nuke.Root()['fps'].setValue()
the tooltips will tell you which knob names to use or you can find them in the dictionary returned by the kkobs() method:
nuke.Root().knobs().keys()