Updating detailing templates in a job (Python 3 error)