Update myQueueWorker.py

add thread-safe consideration