Clean up Python threading stuff, it's pretty clean now.