from pythonwifi.iwlibs import Wireless wifi = Wireless('ISEP ELEVES EAP') print wifi.getEssid()