Create swapSpace.py

for ref