Python can handle this without a problem. As a matter of fact, I usedinfile_base = '''/home/username/Figure3a'''
Hmm, no, infile = ''" << quoteName(infile) << "''\n" does not look right. quoteName should decide if triple quote is needed. Use single quote now. Bo