Python code for simulating joined 2D lines folding in on themselves. Just for fun.