Fixed pmap.
Refactoring
Use multiprocessing.cpu_count.