Update path.py

change str formatting to repr representation.