I am using multiprocessing. But the main problem is it is taking time to return values for a simple function.
The code is:
from multiprocessing import Pool