script generator for parallel computation