Update stop_thread.py