disable usage of _PyType_Lookup() in Py<=2.6/3.1

--HG--
extra : amend_source : c827dfd2e781c1a7e1b982601b6ee8e826d5b4ed