Without seeing the code, I guess you need to format the Excel cells you're writing to, as "text" number format.
To do it with openpyxl, take a look at this similar StackOverflow question. @SuperScienceGrl answer suggests this code:
cell = ws['A1']
cell.number_format = '@'