title: connect wifi with python or linux terminal
body: <p>I am trying to connect to wifi through python and linux terminal but in both cases it is not working with me.</p>
  
  <p>For python, I am using this library <a href="https://wifi.readthedocs.org/en/latest/scanning.html" rel="noreferrer">https://wifi.readthedocs.org/en/latest/scanning.html</a>
   scanning and saving the scheme is working fine but whenever I type this line of code 
  scheme.activate() and I get no output</p>
  
  <p>Any ideas what is wrong with the library and if you have used it before or not??</p>
  
  <p>I tried also to connect to WiFi networks using the CLI. I Googled and found that I should do these three statements
  1- iwlist wlan0 scan // to scan the wireess networks
  2- iwconfig wlan0 essid "Mywirelessnetwork" // to associate with the network 
  3- dhclient wla0 // To get an UP</p>
  
  <p>Whenever I do step 2 and then check iwconfig wlan0 I found that the wireless interface is not associated !! </p>
  
  <p>Any ideas ???</p>
  
  <p>What I am trying to do is to have a library of a way to connect to the wifi preferably through a python function or a library and tested on raspberry PI because I am building some applications that require network connection. </p>