https://singularityfeed.com/path-representation-in-python-towards-data-science/