Python solutions to the code examples in Dobson AJ & Barnett AG: "An Introduction to Generalized Linear Models (3rd ed)