Thanks. Am trying to work on that by creating a modified version of the polyline2polygon function on my own piece of code. Let you know if I find some problems, or if it takes longer than expected.
Another thing, maybe this would better be in another topic, but will post here anyhow: By using the pcurve I am getting this warning.
Warning: DRC minimum_radius 26.226 < 100000000.000
I saw on the mask_elements.py file that you are looking for a minimum_radius key on the cross section dictionary, but I see no way to set that key. Is this an open task for you guys?