sys includes low-level functions for controlling and debugging thread behavior.
sys
Read more at pymotw.com: sys