I intentionally didn't say bug, because it is intended by ED, just as you said. For me it is still a flaw (in the sense of "spot of bother").
But enough of this, back to the awesome fix for that problem!
@NickD, are you further developing this exporter to include the more complex stuff like the parent/child hierarchies?
Also: Since I have done some stuff in python myself I will take a look at it, maybe I have an idea or two how I could help. Not much time at the moment, but I'll still peak in. :)