perf scripting python: Add cpumode