results = multiprocessing.Pool(number_of_processes).map(createpdf, data)
outputs = [result[0] for result in results]
How to retrieve multiple values returned of a function called through multiprocessing.Process