Python Calculate R Squared Value