[Python-ideas] Make threading.Event support test-and-set