fix unittest python2.6