Debugging Thousands of Threads with Python