Refactor removeXSeam to be one method and update callers
Change name of variable to be more clear

We found ourselves asking which way transposed was - this naming makes that explicit.
list multiplication is simpler to read here
Rename variables

Feel free to be verbose in your variable names in pursuit of readability :)
Remove repeated code to showcase differences between cases.
Don't transpose

Refactors edge and distance calculation to avoid confusing (to me) transposition.  This commit isn't quite complete/working, but it gives an idea of the direction I'd suggest going.

By the way, it's possible to swap two variables in python in one line:
b, a = a, b
Just a little log message
fix to earlier commit