Js Get Subarray From Array Python Initialize Parent