Refactoring of newrelic integration in sample WSGI script