Python0CC: Edges created from Intersection of surfaces

So I am trying to access the edges that are obtained when I use the boolean operation Section on surfaces. My goal is to use those intersection edges to create a wire profile which I will then extrude to create another surface. Can anyone help with a code in PythonOCC?
Thanks