In many cases optimal value for [program:x] numprocs is equal to number of CPUs visible to OS. Writing exact value may be not appropriate in cases where single config is used in a heterogeneous cluster with different number of cores on each box.
Here's info how to determine number of CPUs.
http://stackoverflow.com/questions/1006289/how-to-find-out-the-number-of-cpus-in-python