Parentheses are also redundant here.

```python
for dirpath, dirnames, filenames in os.walk(dir_path):
    ...
```

It's also fairly standard practice to use `_` for return values that you never use (like `dirnames`).