title: Python library for playing fixed-frequency sound
body: <p>I have a mosquito problem in my house. This wouldn't usually concern a programmers' community; However, I've seen some devices that claim to deter these nasty creatures by playing a 17Khz tone. I would like to do this using my laptop.</p>
  
  <p>One method would be creating an MP3 with a a single, fixed-frequency tone (<a href="http://www.google.co.il/search?q=audacity+generate+tone&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:en-US:official&amp;client=firefox-a" rel="noreferrer">This can easily done by audacity</a>), <a href="https://stackoverflow.com/questions/307305/play-a-sound-with-python">opening it with a python library</a> and playing it repeatedly.</p>
  
  <p>The second would be playing a sound using the computer built-in speaker. I'm looking for something similar to QBasic <em>Sound</em>:</p>
  
  <pre><code>SOUND 17000, 100
  </code></pre>
  
  <p>Is there a python library for that?</p>