title: python parsing wifi SSID data
body: <p>I currently have the following. But I have noticed that if a SSID includes a space the ordering goes off:</p>
  
  <pre><code>import subprocess
  import csv
  
  process = subprocess.Popen(['/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport', '-s'], stdout=subprocess.PIPE)
  stdout, stderr = process.communicate()
  
  reader = csv.DictReader(stdout.decode('ascii').splitlines(),
                          delimiter=' ', skipinitialspace=True,
                          fieldnames=['wifi_name', 'mac', 'strength'])
  
  for row in reader:
      print(row)
  </code></pre>
  
  <p>My objective is to get the SSID, mac address and signal strength stored so it can be compared to a spreadsheet. </p>