Convert List Node To Array In Python