Fix unittest failure in python 3.x.