Newey–West estimator: HAC Correction in Python

Fix things when they go wrong.