Python iterate over list of objects, Every object has an attribute called ident