chaging directory to a file which previously was inside python