Merge "Switch from deprecated tempnam to TemporaryFile"