Add an example to doctest for stdout_to_file of redirecting stdout to
os.devnull