Python Numpy Create 2d Array Js Slice On String