Setup python working directory on edit.