Fixed unidiomatic-typecheck pylint error.
Fixed unidiomatic-typecheck pylint error.

edx/edx-analytics-data-api,Stanford-Online/edx-analytics-data-api,Stanford-Online/edx-analytics-data-api,edx/edx-analytics-data-api,Stanford-Online/edx-analytics-data-api