Add Reinforcement in wall panel by python

Hi There
Can anybody to explain how to use python instead of dynamo in revit.

I want to add reinforcement to wall panel using python.
i have done in dynamo but sometimes isn’t working properly. so i prefer a python language is better than dynamo script.(attached dynamo file)

Create Reinforcement.dyn (925.4 KB)