import sys import string import re transcript = open(sys.argv[1],'r').read() outfile = open(sys.argv[2],'w') # regular expressions to clean newex = re.compile(r"[\t]") # substitutions transcript = newex.sub(",", transcript) outfile.write(transcript)