Create SwapNodesinPairs.py