Update demo.py

why import threading?

I tested the demo without it and it works fine, is it needed?