fix: exception and thread syntax to make it py3k compatible
import thread library from py3k or python 2
remove unused exception variable
Merge pull request #11 from ssaboum/master

fix: exception and thread syntax to make it py3k compatible