Sometimes you need to determine the target of a symlink. os.readlink will do this:

print(os.readlink(path_to_symlink))