Import _thread as thread for python3
Regenerate with swig 3.  Did some work for future support of python3