setting subsurf in a script

Can anyone tell me how I set subsurf on for a mesh, in a python script? I have read the API documentation, yet remain a little confused, :expressionless:
I think I should use the NMesh setMode() method, yet if I use

me.setMode(0,0,0,1)
or
me.setMode(‘SubSurf’)
or
me.setMode(8)

I get an error message, what sring or bitflag should I be using?

You can set SubSurf with this:

obj=Blender.Object.GetSelected()[0]
data=obj.getData()
data.setMode(“SubSurf”)
data.uptade()