Adding new Python API function to check for stopped threads.