add threading.Event backport. in py2.6 wait returns None