new_body = ''
lines = body.split('\n')
for line in lines:
    if len(line) > 90:
        w = textwrap.TextWrapper(width=90, break_long_words=False)
line = '\n'.join(w.wrap(line))
new_body += line + '\n'
Python textwrap Library - How to Preserve Line Breaks?