Ooh, TemporaryFile is cool.  Didn't know about that.