As far as i understand from the comment of @Thomas_Mahon (topic below), that could give problems.
https://forum.dynamobim.com/t/creating-line-by-two-points-in-python/14507/2
For the rest, interesting topic,learned some new things
Kind regards,
Mark