Generalized Linear Model Python