Edit: thread.py