title: What's the best way to split a string into fixed length chunks and work with them in Python?
body: <p>I am reading in a line from a text file using:</p>
  
  <pre><code>   file = urllib2.urlopen("http://192.168.100.17/test.txt").read().splitlines()
  </code></pre>
  
  <p>and outputting it to an LCD display, which is 16 characters wide, in a telnetlib.write command.  In the event that the line read is longer than 16 characters I want to break it down into sections of 16 character long strings and push each section out after a certain delay (e.g. 10 seconds), once complete the code should move onto the next line of the input file and continue.</p>
  
  <p>I've tried searching various solutions and reading up on itertools etc. but my understanding of Python just isn't sufficient to get anything to work without doing it in a very long winded way using a tangled mess of if then else statements that's probably going to tie me in knots!</p>
  
  <p>What's the best way for me to do what I want?</p>