If you do os.chdir(...) and then os.getcwd() in the same SageNB cell, you will get the expected answer. Each cell seems to set its directory separately. In any case, when you are using save, load, etc., in SageNB, then use absolute paths: save("/home/jim/.../file") rather than just save("file").