'Helper method to update history during iterative fit.'

def _update_history(self, tmp_result, mu, history):

    history['params'].append(tmp_result.params)
    history['deviance'].append(self.family.deviance(self.endog, mu, self.iweights))
    return history
