Addition for python3's threading.py module