perf scripting python: Avoid declaring function pointers with a visibility attribute