Switched to NamedTemporaryFile, and now deleting it