Update demo.py

why import threading?