Update monitorThread.py