Add multiprocess support on data export. With the help of Thomas Ogrisegg and Marc Cousin.