Python Generalized Linear Model