I would like to create a script that would evenly distribute the locations of some selected nodes so that I can better organize my node trees. I'm seeking a script solution for this issue, instead of using Node Wrangler, because Node Wrangler functionality is not available in Animation Nodes.
I imagine script would function something like:
- X = C.active_nodes
- For nodes in X find locations of left_most_node_location and right_most_node_location
- Set location of nodes to distance between left_most_node_location and right_most_node_location divided by the length of X
I'm not very good with Python, so I'm not really sure how I would write this for Blender.

S + Y + 0to align the nodes vertically. Also Node Wrangler comes with an Align Nodes button... – brockmann Mar 19 '19 at 17:21