cd is the shell command to change the working directory.
cd
How do I change the current working directory in Python?
I would use os.chdir like this:
os.chdir
os.chdir("/path/to/change/to")
By the way, if you need to figure out your current path, use os.getcwd().
os.getcwd()
More here