Sorting a heterogeneous list of objects in Python,"sorted(itemized_action_list, key=attrgetter('priority'))"