Python: Building list of lists using dictionary recursion

welcome to shbcf.ru