os.path.relpath()

os.path.relpath(path, start='.')[source]

Return a relative version of a path