L- system , python script

hi all,

i am working on a python script regarding l-systems. I want to grow branches from multiple points and i dont want the branches of different points to collide with each other nor the branches within each point to collide.
right now the script works in terms of growth and not allowing collision but the problem that i have is that first the branches from each point are grown and completed and then it moves to the next point.
The branches are not growing simultaneously from every point.
I think the issue with the script right now is that i am calling the for loop for every point outside of the function and not within the function. Can someone please help me with this and how i can incorporate the for loop within the function…

Attaching the files for reference.


test 1.gh (12.1 KB) test 1.3dm (39.3 KB)