It looks like you are running into some issues using multiprocessing and a HDF5 file. Have a look at this topic.