with futures.ThreadPoolExecutor(max_workers=40) as executor:
future_to_search_suspicious = dict()
for index, company in companies.iterrows():
future = executor.submit(search_suspicious_around_company, company)
future_to_search_suspicious[future] = company
for future in futures.as_completed(future_to_search_suspects):
company = future_to_search_suspicious[future]
if future.exception() is not None:
warn("{} raised an exception: {}".format(company["cnpj"],
future.exception()))
elif future.result() is not None: