Put Numpy Array Initialization Javascript Map Functions In Python