I am invoking pytest from python code using python.main(). When the python.main() runs as part of the python execution, the output is as expected and the response is a numeric r