Wall by profile in Python code doesn't work anymore using Dynamo 2.0.3 in stead of 1.3.3

i tried to make exactly like this, but i got the warning

Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “”, line 30, in
TypeError: iteration over non-sequence of type NoneType

and if i connected all of it, its changes
Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “”, line 32, in
Exception: Could not construct a proper face with the input curves to create a wall correctly.

@ericabbott
i got a warning: AttributeError: ‘Int64’ object has no attribute ‘ElementId’

#Do some action in a Transaction
TransactionManager.Instance.EnsureInTransaction(doc)

e = levels.ElementId()
#id = ElementId(levels)
profile = List[Curve]()
for curve in curves:
	profile.Add(curve.ToRevitType())
wall = Wall.Create(doc,profile,types,e,False)
Walls.append(wall)

TransactionManager.Instance.TransactionTaskDone()


OUT = walls