I'd probably write this `[m for m in self.py_modules if is_string(m)]` and similarly below but whatevs... this PR looks simple and unobjectionable, feel free to change or not and then merge...