title: set a timout in python splinter web crawler
body: <p>Trying to set a time out in python much like you would in ruby.</p>
  
  <p>I have a link that when I click it opens a popup but I can not access it because it causes the script to freeze until I kill it.  I have been trying for months to access this popup to no joy in ruby watir-webdriver.  </p>
  
  <p>I am trying to timeout the call to popup and then access the popup window.</p>
  
  <pre><code>@timeout(3)
  try:
  b.execute_script("javascript:openMdlWindow('InvestmentDetailOptions.aspx?IDAssetType=','620','600');if(window.document.RetValue == '2'){window.parent.LoadinIframe('InvestmentDetail.aspx?FromMenu=N&amp;IDAssetType=','Investment Details &gt; Full View','false');}")
  except Exception, e:
  print 'timeout!'
  </code></pre>
  
  <p>any help will be dearly appreciated.</p>