import sys
import os
import multiprocessing

proc_num = int(sys.argv[1])
cmds = sys.argv[2:]

pool = multiprocessing.Pool(proc_num)
for cmd in cmds:
    pool.apply(os.system, args=cmd)
pool.close()
pool.join()



@@ -72,16 +72,50 @@
 )%0Acmds =
+ map(lambda x: x.replace(%22'%22, %22%22),
  sys.arg
@@ -119,16 +119,17 @@
 argv%5B2:%5D
+)
 %0A%0Apool =
@@ -208,19 +208,23 @@
 m, args=
+(
 cmd
+, )
 )%0Apool.c

fix bug