two_boxes = cq.Workplane("XY").box(1,1,1).faces(">Z").workplane(offset=5).box(1,1,1).faces("<Z").loft()
Have spent a while trying to make this work, but it complains of only having one wire. I may not yet have my mind wrapped around how to properly use the stack; if I figure it out I'll post here.