The use of the multiprocessing library creates multiple copies of metric dictionary which leads to calculated values not being stored.