title: error when using pywhois
body: <p>I tryed to use <a href="http://code.google.com/p/pywhois/" rel="nofollow">pywhois</a> to check domain availability:</p>
  
  <pre><code>import pywhois
  try:
          w = pywhois.whois('domain_name')
          message='Domain is available' 
  except:
          message='Domain is not available'
  </code></pre>
  
  <p>but I get this error:</p>
  
  <pre><code>'module' object has no attribute 'whois'
  </code></pre>
  
  <p>I installed <code>pywhois</code> with this command:</p>
  
  <pre><code>easy_install pywhois
  </code></pre>
  
  <p>It was installed successfully,what I missed?
  <br/>
  <strong>Edit:</strong>
  the best and more stable way to check domain availability is this way:</p>
  
  <pre><code>try:
          import socket
      socket.gethostbyname_ex('domain_name') 
              message='Domain is not available'
  except:
          message='Domain is available'
  </code></pre>