Debugging use of statsmodels