Code style suggestion:

```
if files:
```

rather than

```
if files != []:
```