def acquire(self): win32event.WaitForSingleObject(self.handle, win32event.INFINITE) self.locked = True