How to Fix TypeError: 'int' Object is Not Iterable in Python OCR Dataset Generation