data = ['My data', 'includes', 'strings and', 'numbers like', 42, 'and', 3.14]
number_of_processes = 5
results = multiprocessing.Pool(number_of_processes).map(createpdf, data)
How to retrieve multiple values returned of a function called through multiprocessing.Process