Configure Secure Access to Use REST API with Python