Thanks FEA way,
I was able to resolve the above mentioned error.
But had difficulty in getting all the parts name from the model.
My goal here is to list all the parts names.
Please see the script below and error while executing it.
TypeError: 'Part' object does not support item assignment...