[PATCH 5.6 222/254] perf tools: Support Python 3.8+ in Makefile