[PATCH 5.5 223/257] perf tools: Support Python 3.8+ in Makefile