I'm working a lot in Python and feel your pain, what I do is: X/.* / ,|tab -n 4 -u
I normally work with several python files open in Sam, this has worked well for me. As already pointed out another solution is to run a script to do the conversion for you on a pre-commit hook.