Create backgroundthread.py