Swap columns and index in output of template_match.py