[PATCH 6.3 104/246] perf script: Fix Python support when no libtraceevent