make it
```
[mod for mod in real_mods if mod_name is None or mod.startswith(mod_name)]
```