perf script python: Fix wrong code snippets in documentation