I am following the suggestions from these stackoverflow issues [1][2]. I have my multiprocessing function in a different module. I call it from main. The goal is to read images