sketchy fix for numpy.dot malloc bug in pool.map