Synchronizing python multiprocessing processes.