removed chdir in PythonMARS_funcs.py