[Libvirt-cim] Remove enumerate() function in device.py and update tc to call new function in enumclass.py