def batchScoreIAT(path='.', write_file=False):
 files = glob.glob(os.path.join(path, '*.csv'))
 for f in files:
  scoreIAT(f, write_file=write_file)

def batchScoreIAT ( path = '.' , write_file = False ) : files = glob . glob ( os . path . join ( path , '*.csv' ) ) for f in files : scoreIAT ( f , write_file = write_file )
call scoreiat() on all csv files in path .