title: How to determine if we are in the first week of the current month
body: <p>I am writing a little utility function in Python which returns a boolean, indicating whether today is in the first week of the month.</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>import calendar
  import time
  y, m = time.localtime(time.time())[:2]
  data = calendar.month(y, m)
  
  In [24]: type(temp)
  Out[24]: &lt;type 'str'&gt;
  
  In [25]: print temp
  -------&gt; print(temp)
       July 2010
  Mo Tu We Th Fr Sa Su
            1  2  3  4
   5  6  7  8  9 10 11
  12 13 14 15 16 17 18
  19 20 21 22 23 24 25
  26 27 28 29 30 31
  </code></pre>
  
  <p>I want to pack this string into a list of lists. Actually, it's only the first row that I want, since it is the first week, but I could generalize the function so that it allows me to check whether we are in the nth week, where 1 &lt; n &lt; 5 (depending on the month of course).</p>
  
  <p>Once I have a list of lists I then intend to check if the current day is an element in the list.</p>
  
  <p>Can anyone show how I can get the output from the calendar.month() method into a list of lists?</p>
  
  <p>Last but not the least, I may be reinventing the wheel here. If there is an inbuilt way of doing this (or maybe a more Pythonic way of doing this) someone please let me know.</p>