Check for empty URL and api key before old analytics api call.
Encode course key as a URL parameter.
Add tests for empty analytics server info and url-encoded params.
Fix pylint errors to get below limit.