Python Generalized Linear Regression