message: hpaulson: replaces type(socket) with socket.socket
diff: @@ -58,7 +58,7 @@ def IsPortUsed(port):
  except:
  # print 'error:', sys.exc_info()[0]
  portUsed = True
  - if isinstance(s, type(socket)):
  + if isinstance(s, socket.socket):
  s.close()
  return portUsed
  