https://vuyisile.com/how-to-flatten-a-list-of-lists-in-python/
How to flatten a list of lists in Python