Thanks All, It just occured to me that I need to ensure that any temporary file has a unique path + filename. Is there some common idiom for this, or is os.tempnam([dir[,prefix]]) or os.tmpnam() appropriate? Cheers. Duncan