I have a python script which needs to read a text file, do some commands, wait until the text file receives new information, and then do the whole process again. Is there a way to make the python script do such a thing (stay idle until some new information is appended to the text file)?