結果 : race condition resolution in python