How to ensure the correct order of saving the results in python I am trying to take the specific data I need from the loaded excel file,