My aim is to read values from a list in python which is continuously being updated by another process and I have tried to make a minimal working code here. I have a global a