Python Generalized Least Squares Method Equation