new_contents: datasets   = ['kosarak', 'mushroom', 'pumsb_star', 'retail']
  thresholds = [     9900,         81,          490,      881]
  k = 100
  
  cmd_template = "./dph data/datasets/{0}.dat r {2} {1} 0.5 0.1 {3} 1000 5 {4}"
  redirect = " > shelves/{0}_sh_{1}_bins_{2}"
  
  for dataset, t in zip(datasets, thresholds):
      for sh in range(1,31):
          for bins in range(1,31):
              if sh * bins > k: continue
              print (cmd_template + redirect).format(dataset, bins,sh, t, k)
  
subject: Test run script