Rename `thread` import into `_thread`

This module has been renamed in python 3+