This seems like a basic feature missing from std.file:

http://docs.python.org/2/library/os.path.html
os.path.realpath(path)
Return the canonical path of the specified filename, eliminating any symbolic links encountered in the path (if they are supported by the operating system).