How to offset a polysurface in grasshopper use python script

I try it in this simple way:

import Rhino
#brepin = polysurface input
#dist = distance input

a = Rhino.OffsetBrep(brepin,dist,0.001,bothSides,Solid)

But it returns an error "Runtime error (MissingMemberException): attribute ‘OffsetBrep’ of ‘namespace#’ object is read-only“

I have no idea what’s happening,
Does anyone know what’s going on here? Could you please help me?

Thank you very much!

"X attribute of namespace# is read-only" is IronPython’s cryptic way of saying there is no such attribute in the namespace - probably you are looking for Rhino.Geometry.Brep.CreateOffsetBrep?