

    self.country_data_rep_list_ = sorted(self.country_data_rep_list_, key=lambda DataRep: DataRep.total_,reverse=True)    
    
    from operator import itemgetter, attrgetter
    self.country_data_rep_list_ = sorted(self.country_data_rep_list_, key=attrgetter('total_'),reverse=True)    
 
 
To Use a library function in the Test do:


    # Place library function in say. Util.py in the Pyext/test directory
    # Then change the module search path, so it gets loaded
    #
    import os, sys
    test = os.getcwd() + "/test"
    sys.path.append(test)
    from Util import *