Python BVAR code that eventually needs to be made more compatible with Statsmodels