def lowercase_value(value):
 if isinstance(value, six.string_types):
  result = value.lower()
 elif isinstance(value, (list, tuple)):
  result = [str(item).lower() for item in value]
 elif isinstance(value, dict):
  result = {}
  for (key, value) in six.iteritems(value):
   result[key.lower()] = str(value).lower()
 else:
  result = value
 return result

def lowercase_value ( value ) : if isinstance ( value , six . string_types ) : result = value . lower ( ) elif isinstance ( value , ( list , tuple ) ) : result = [ str ( item ) . lower ( ) for item in value ] elif isinstance ( value , dict ) : result = { } for ( key , value ) in six . iteritems ( value ) : result [ key . lower ( ) ] = str ( value ) . lower ( ) else : result = value return result
lowercase the provided value .