The following Python code does not write "This is not getting written" into my NamedTemporaryFile.
import tempfile with tempfile.NamedTemporaryFile