Python; Create new circuit in panel and assign electrical elements to circuit

We need something similar but for Data Devices.
Can the Python be edited in such way it works for Data Devices (Like PowerCircuit to Data?).

EDIT

Can the Python be edited in such way it works for Data Devices (Like PowerCircuit to Data?).
The answer to this is yes.
Problem now is that every Family got multiple Connectors and each Connector needs a different
Circuit Number.