Convert Node To Array Python Initialize Dictionary