Update thread-class.py