[PATCH 4.14 080/199] perf tools: Support Python 3.8+ in Makefile