It has completely different syntax than sh.
For sh a command would look like
from sh import ifconfig print(ifconfig("wlan0"))
For shellpy
p`ifconfig wlan
39 karma · joined February 15, 2015
from sh import ifconfig print(ifconfig("wlan0"))
For shellpy
p`ifconfig wlan