with ThreadPoolExecutor(max_workers=20) as executor: records = list(executor.map(map_function, records))
I have some fun