I have my own implementation of the covariance function based on the equation:
The numpy function has a different normalization to yours as a default setting. Try instead
>>> np.cov([X, Y], ddof=0)
array([[ 273.88888889, 190.61111111],
[ 190.61111111, 197.88888889]])
References: