I check if an object has an attribute or another, can have only one.
If the attribute is found, assign his value to a variable. Can this be done dynamic(the attributes number can variate), getting from a list of possible attributes ?
if hasattr(o, 'a') or if hasattr(o, 'b') or if hasattr(o, 'c') or if hasattr(o, 'd'):
result = the one that exist