I've been looking through SO python's frequent question's and ended up in this one: Making a flat list out of list of lists in Python
So I was thinking about the case were you could have lists of lists of lists...
I came up with a code that seems to work (I have only tried the cases shown in the code), and I was wondering if there is any more pythonic way of writing it, since I come from other language and I'm not too much into list comprehension.