Python newrelic API implementation