added selection nodes and it now produces executable python code. I just need to write a wrapper for the function it produces