perf python scripting: Improve the syscalls-counts script