Getting surfaces of elements in Python

Hi all, I have created a python script using what I have with the node to code in Dynamo.

However, I keep getting the issue

File “”, line 22, in
NameError: name ‘Elements’ is not defined

How do I rectify the error? My code is as follows,

import clr

clr.AddReference(‘RevitAPI’)
from Autodesk.Revit.DB import *

clr.AddReference(‘RevitNodes’)
import Revit
clr.ImportExtensions(Revit.Elements)

clr.AddReference(‘ProtoGeometry’)
from Autodesk.DesignScript import Geometry

clr.AddReference(‘DSCoreNodes’)
import DSCore
from DSCore import *

elements = UnwrapElement(IN[0])
solidlst =

for elementsolids in elements:
solids = Elements.Element.Solids(elementsolids);
solidlst.append(solids)
for sldele in solidlst:
for ele in sldele:
solid = Solid.ByUnion(solidlst);
plysrf = PolySurface.BySolid(solid);
srf = PolySurface.Surfaces(plysrf);
OUT = srf

Thank you!

it should be like this

solids = elementsolids.Solids