updated multiprocessing example, works in python3