Creating a nested dictionary from a flattened dictionary Creating a nested dictionary from a flattened dictionary python python