Sorry, I misread, I hadn't seen you were reusing `scripts` on the following line. This is fine, but change it to:
```
scripts = [s for s in soup.findAll('script') if 'src' in s]
```