Python module for performing linear regression for data with measurement errors and intrinsic scatter