When an Underscore _ character is present in a comment the pdf creation fails with:
ERROR: An error occurred during LaTeX execution
The underscore character can be escaped with \_ to avoid this problem.
Can this escaping be done in python?
Possible spot: Addition of comment to the record