title: Weird syntax error in using beautifulsoup.find()
body: <p>This may be entirely obvious, but I'm stumped (kinda new to python, sorry):</p>
  
  <pre><code>page = urllib2.urlopen("http://www.somerandompage.com")
  soup = BeautifulSoup(page)
  currentDate = soup.find("span", class="posted-on")
  </code></pre>
  
  <p>I'm looking for the following element in the page:</p>
  
  <pre><code>&lt;span class="posted-on"&gt;Posted on Friday, &lt;br/&gt;August 12th, 2011&lt;/span&gt;
  </code></pre>
  
  <p>I'm getting this syntax error instead:</p>
  
  <pre><code>"test.py", line 22
  currentDate = soup.find("span", class="posted-on")
                                      ^
  SyntaxError: invalid syntax
  </code></pre>
  
  <p>The basic documentation online seems identical to me (obviously assuming find_parents() and find() work much the same way):</p>
  
  <pre><code>a_string.find_parent("p")
  # &lt;p class="story"&gt;Once upon a time there were three little sisters; and their names were
  #  &lt;a class="sister" href="http://example.com/elsie" id="link1"&gt;Elsie&lt;/a&gt;,
  #  &lt;a class="sister" href="http://example.com/lacie" id="link2"&gt;Lacie&lt;/a&gt; and
  #  &lt;a class="sister" href="http://example.com/tillie" id="link3"&gt;Tillie&lt;/a&gt;;
  #  and they lived at the bottom of a well.&lt;/p&gt;
  
  a_string.find_parents("p", class="title")
  # []
  </code></pre>
  
  <p>So what am I doing wrong?  I know class is a reserved Python keyword; is that what's messing this up somehow?</p>