cad/ifcopenshell: fix with Python-3.12
Remark: I have a WIP to get rid of OpenCascade 740 and make IfcOpenShell work with OCCT-8.0.