cd is the shell command to change the working directory.
cd
How do I change the current working directory in Python?
Further into direction pointed out by Brian and based on sh (1.0.8+)
from sh import cd, ls cd('/tmp') print ls()