Shell Loop Through Files In Python