[PATCH 5.4 195/232] perf tools: Support Python 3.8+ in Makefile