get rid of functools

this fixes the unittests under python2.4