py: fix setting of cwd again