xlwings not updating global variable correctly when using threading Here is my logic that I am trying to understand.