Use temporary directory via tempfile
Use temporary directory via tempfile

* Gets cleaned up automatically (even on failures)
* Supposedly more secure

berkmancenter/mediacloud,berkmancenter/mediacloud,berkmancenter/mediacloud,berkmancenter/mediacloud,berkmancenter/mediacloud