I find this little code super useful. It allows you to flop all the nodes you have selected; pretty much reverse them in X. I honestly don't know who wrote it because a coworker sent it my way when I started learning Python. I have this code set to the hotkey ctrl+alt+f.
Expand Flop Nodes