title: Break a string into chunks, keeping words whole in Python
body: <p>I'd like to break a long string (say, 500 characters) into smaller chunks (say, &lt;=100 characters each), but keeping words whole. That is, the chunks should be as close to 100 characters as possible, but should not cut off whole words. My first reaction was to split the string and loop through each word, concatenating each word to a buffer until reaching the limit, and then starting over for each chunk, but I figure there must be a more efficient way.</p>
  
  <p>Thanks!</p>