python 3 go one directory up write file code example Example: python reference to back folder os.chdir("../nodes")