[WIP] New feature: python-version of fslswapdim

Implements #246
You are testing check_niimg here, not your function.