Oh ! sorry never thought you were saying Python was the source of the problem.
Since Python happened to be a common feature common between our two scenarios, wanted to caution other HN'ers not to put blame on Python. In my case Python was indeed doing the right thing.