python2.6 compatability in unittests