I will also make mention that using WriteLn in this example is solely for example purposes to show the thread starting, running, and stopping. I had a hunch WriteLn wasn't thread-safe, as stdout does mangle in Python if used within a thread as well. WriteLn should only be called from the main thread.
Writeln to StdOut itself is threadsafe, but the output to the shell will nevertheless likely be mangled.