I would remove that and do:

```
new_loc = np.zeros_like(cov)
inv_cov = np.linalg.inv(cov)
```
at line 584.