Initial commit of python residual calculator

For validation