Thanks for those of you replied. While I could not 100% exclude this possibility, I did find out that our problem is related to the threading module's t.join() function. -Zihong