Convert Node To Array Python Initialize Empty Arraylist