human
loop over files
assistant
Here is some code to loop over files in directory '.'

for fn in os.listdir('.'):
    if os.path.isfile(fn):
        pass

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.