hwaf.context: better python detection (handle 2.6)