結果 : build dictionary recursively python