Python Multiprocessing Map Reduce Javascript Execution