It's a specific fitter which fits a straight line with uncertainties in x and y. I'm not sure how to generalize this (except may be in the case of a plane, hence `z_sigma` in the code). 
I'll check the references you mentioned.