fix thread unexit issue | support python 2.6
Merge origin/master