How to create a nested dictionary from a list in Python?,"from functools import reduce