Python - text wrap and fill
Both are quite handy and I did NOT realize that they existed. Just import textwrap, give a constraint, and away you go. Quite nice. Need to use this in several scripts.
Found a nice implementation that works well at How to get Linux console window width in Python by Harco …