Change the current directory one level up,os.chdir('..')