Generate Numpy 2d Array From Input