Add varfuncs from statsmodels
Add glm module
Factor out glm into its own module