import cadquery as cq w0=cq.Workplane('XY',origin=(0,0,63)) w1=cq.Workplane('XY',origin=(0,0,42)) r=w0.workplane(offset=-126/2).moveTo(-78,-24).cylinder(126,22).union(w0.workplane(offset=-77/2).moveTo(-40.5,8).box(27,160,77)).union(w1.sketch().push([(53.5,-68)]).rect(93,40).push([(54,-69)]).circle(13,mode='s').finalize().extrude(-74))