thread was renamed to _thread on python3