title: Generating all dates within a given range in python
body: <p>I have two string variables which contain dates in yyyy-mm-dd format as follows :</p>
  
  <pre><code>date1 = '2011-05-03'
  date2 = '2011-05-10'
  </code></pre>
  
  <p>I want to write code that generates all dates in the range date1 to date2. How can this be done in Python?</p>