Use python 2.4-compatible threading.currentThread() call