sh
sh is a full-fledged subprocess replacement for Python 2.6 - 3.5, PyPy and PyPy3 that allows you to call any program as if it were a function
http://amoffat.github.io/sh/
code:python
from sh import ifconfig
print(ifconfig("wlan0"))