// Since we already have the values of base_config we check against them
if (base_config[key] is not None and
type(base_config[key]) is not type(value)):
raise ValueError(
"Incorrect type "{}" for key "{}". Must be "{}"".format(
type(value), key, type(base_config[key])))
After Change
basestring = str
// Since we already have the values of base_config we check against them
if (base_config[key] is not None and
not isinstance(value, type(base_config[key])) and
// For Python2 compatibility. We don"t want to throw an error when
// both are basestrings (e.g. unicode and str).
not isinstance(value, basestring) and