fix test_DH_init on python 2.6