thanks , i guess the best option is a callable class which builds the functions with the common code. Once again,we REALLY need a patterns book for python. =/