Yes, the code i posted will return some None values. I believe your input indexes are not all sequential, (0,1,2,3, etc…). I think you had something like (1,2,3, 7). I’m sure someone else would be able to describe this more accurately, but as I understand it, the tree_to_list function is starting at branch 0, and will create branches with None values in those empty/non-sequential gaps in your input list…Not sure that’s a clear explanation.