Instead of using files to send data to threads (eg. `stop.txt`), use a thread-safe global variable like a [`Queue`](https://docs.python.org/3/library/queue.html).
Instead of using files to send data to threads (eg.
stop.txt), use a thread-safe global variable like aQueue.