old_contents: #!/usr/bin/env python
  
  import collections
  import os
  import os.path
  import sys
  from nestly import nestly
  
  wd = os.getcwd()
  input_dir = os.path.join(wd, 'inputs')
  
  ctl = collections.OrderedDict()
  
  ctl['strategy'] = nestly.repeat_iterable(('exhaustive', 'approximate'))
  ctl['run_count'] = nestly.repeat_iterable([10**(i + 1) for i in xrange(3)])
  ctl['input_file'] = lambda x: map(nestly.file_nv, nestly.collect_globs(input_dir, ['file*']))
  
  nestly.build(ctl, 'runs')
  
new_contents: #!/usr/bin/env python
  
  import glob
  import os
  import os.path
  from nestly import Nest
  
  wd = os.getcwd()
  input_dir = os.path.join(wd, 'inputs')
  
  nest = Nest()
  nest.add_level('strategy', ('exhaustive', 'approximate'))
  nest.add_level('run_count', [10**i for i in xrange(3)])
  nest.add_level('input_file', glob.glob(os.path.join(input_dir, 'file*')),
          label_func=os.path.basename)
  
  nest.build('runs')
  
subject: Update basic_nest for new API