Create residuals.py