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

semi revert f894c147 and use AC_DEFINE _PY27, fixes NPC 345