After some time wasted in trying to debug why our Python exec scripts were generating error messages, we learned that "aaa authorization exec ..." is a prerequisite for these scripts being able to execute correctly. Here's a sample error for xrcli_exec():
{'status': 'error', 'output': 'Failed to get command output'}
I realize that most people will already have this configuration present as part of a standard aaa config template, but it'd be helpful to call this out in the README.md to help reduce the headache for those that haven't applied this prerequisite config.
(worth noting that this prereq command is also not called out in the public documentation for this feature)