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

clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager

doc = DocumentManager.Instance.CurrentDBDocument
items = UnwrapElement(IN[0])
elementlist = list()
for item in items:
	selsetmembers = list()
	for member in item.GetElementIds():
		selsetmembers.append(doc.GetElement(member))
	elementlist.append(selsetmembers)
OUT = elementlist