Added a hook for patsy, needed for statsmodels and
others.