def __init__(self): self._Event__lock = pm.Lock('Python Event') self._Event__cvar = pm.ConditionVarFull(self._Event__lock) self._Event__flag = False