Update thread_example.py