Rebar 2d detailing (Like Sofistik)

Hi guys this python script is very helpful thank you, but can I make this script work on a list of elements not just one element.
if we can do that please tell me because am not familiar with python language