multiprocessing pool for getmetadata()