Use threading.Event() to wait until value is initially set rather than use a mutex...