python: Really throw an error if search_threads() fails