For the access you put the line edit in a list, vector or array, whatever the preferred data structure for that is in Python.

If you really need to store the index value in the object as well, just call setProperty() on it, that will create a dynamic property with any name you choose.

Cheers,
_