結果 : how to use locks in python