[WIP] New feature: python-version of fslswapdim

Implements #246
and here.