Numpy Gradient Function In Python Practice