this will all have the wrong value on Windows, where os.path.join is wrong for infile, and the hardcoded slash is wrong for outfile.