Using the Text Analytics API from Python code