if '__pycache__' in dirs: dirs.remove('__pycache__') # don't visit __pycache__ directories z