Python script to fix OCR errors