revert to AC_DEFINE _PY27, fix Python2.7 not found problem

semi revert f894c147, avoid _PY27, fixes NPC 345