Here is the scenario. On a local machine there are two files in the same directory:
taskrunner.py
namefile.txt
taskrunner.py runs continuously (Python 3