I have a python generator which goes through a list of files and processes the data inside one by one. The order is important as I need the result from the previous