modify file path in python code