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