https://mysteryweevil.medium.com/streamline-your-python-code-with-iterator-compression-and-expansion-f3105e0d96e6