Update priority_thread.py