Offset Brep Python

I’m offsetting a brep. The script worked fine until I used a semi complicated shape. I can not figure out what I’m missing. Could someone help and take a look? Some faces do the offset some don’t. I just can’t find the Explanation

import rhinoscriptsyntax as rs
import Rhino as r


for x in breps:
   os = r.Geometry.Brep.CreateOffsetBrep(x,d,closed,True,0.01)
   print os[0]

thanks in advance (8.4 KB)

Just in case it helps anyone else - “Closed” needs to be a boolean True or False.