[PATCH 6.2 096/242] perf script: Fix Python support when no libtraceevent