title: BeautifulSoup removing tags
body: <p>I'm trying to remove the style tags and their contents from the source, but it's not working, no errors just simply doesn't decompose. This is what I have:</p>
  
  <pre><code>source = BeautifulSoup(open("page.html"))
  getbody = source.find('body')
  for child in getbody[0].children:
      try:
          if child.get('style') is not None and child.get('style') == "display:none":
              # it in here
              child.decompose()
      except:
          continue
  print source
  # display:hidden div's are still there.
  </code></pre>