To reply to many of your messages (I'm using Google right now due to lack of a better newsreader at the moment), the issue with the temporary file is that when I write something new to it, if the old contents of the file was larger, not all of it will be overwritten. So, the truncate() method will work very well. Thank you Mr. Neuhauser, Mr. Ewing, and all others.
-- http://mail.python.org/mailman/listinfo/python-list