Can't pickle <type 'instancemethod'> when using multiprocessing Pool.map() Can't pickle <type 'instancemethod'> when using multiprocessing Pool.map() python python