Not sure if this is possible if we use python bindings via swig.
With some help from the ifcopenshell author the recipe seems to be ready. The only thing missing now is a release of the current state.
Not sure if this is possible if we use python bindings via swig.