Make tests succeed in Python 3.0 and 3.1

--HG--
branch : py2_and_py3_single_source