title: How to connect to WiFi network on Windows?
body: <p>I am trying to write a script in Python 3 but all modules available today work on python 2 which will enable me to search for wireless networks and to connect to them. Is there any Python 3 library for this?</p>
  
  <p>The code I tried for python 2</p>
  
  <pre><code>from wireless import Wireless
  wireless = Wireless()
  wireless.connect(ssid='ssid', password='password')
  </code></pre>
  
  <p>which is giving me an error</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "C:\Users\Himanshu Poddar\AppData\Local\Programs\Python\Python36-32\lib\site-packages\wireless\Wireless.py", line 23, in __init__
      self._driver_name = self._detectDriver()
    File "C:\Users\Himanshu Poddar\AppData\Local\Programs\Python\Python36-32\lib\site-packages\wireless\Wireless.py", line 50, in _detectDriver
      compare = self.vercmp(ver, "0.9.9.0")
    File "C:\Users\Himanshu Poddar\AppData\Local\Programs\Python\Python36-32\lib\site-packages\wireless\Wireless.py", line 71, in vercmp
      return cmp(normalize(actual), normalize(test))
  NameError: name 'cmp' is not defined
  </code></pre>
  
  <p>But this is not working since it is based on python 2. Is there any way to connect to a wifi using Python 3</p>