threading python 2 -> python 3