Error Correction Model In Python