import thread library from py3k or python 2