wrap parameters to multiprocessing in an object