Ordering a list of dictionaries in python,"mylist.sort(key=operator.itemgetter('weight', 'factor'))"