def sdecode_if_string(value_):
 if isinstance(value_, string_types):
  value_ = sdecode(value_)
 return value_

def sdecode_if_string ( value_ ) : if isinstance ( value_ , string_types ) : value_ = sdecode ( value_ ) return value_
if the value is a string .