Have you imported the Dynamo RevitNodes
library to python? Also, since you’re in an environment which can make API calls directly, I wouldn’t bother using this method and instead use the RevitAPI:
for d in den:
rawRevitElement = UnwrapElement(d)
p = rawRevitElement.ParametersMap["Parameter Name"]
dln.append(p)