[PATCH v2 3/7] perf scripting python: Add function to get a config value