title: How to check if a server is up or not in Python?
body: <p>In PHP I just did: <code>$fp = @fsockopen(irc.myserver.net, 6667, $errno, $errstr, 2);</code></p>
  
  <p>Does Python 2.X also have a function like PHP's <code>fsockopen()</code>? If not how else can I check if a server on port 6667 is up or not?</p>