call the function os.path.realpath with an argument d, use the result as an argument for the call to the function os.path.abspath,
dirs = [ upath ( os . path . abspath ( os . path . realpath ( d ) ) ) for d in dirs ]