Python Generalized Least Squares Method