from sh import ifconfig print(ifconfig("wlan0"))
For shellpy
p`ifconfig wlan
Reply on news.ycombinator.com