I'm running subprocess.run() in a for loop so that each iteration would pass a filename to this function:
myList = ['file1', 'file2']
for item in myList:
subprocess.run(['foo.py', 'argBar', 'argBaz', item], shell=True, check=True)
but I'm noticing that the item is not being passed to foo.py as an argument.