More work on checking of llg residuals in python