def ek(function, *args, **kwargs):
 if (name == 'nt'):
  result = function(*args, **kwargs)
 else:
  result = function(*[(ss(x) if isinstance(x, (str, unicode)) else x) for x in args], **kwargs)
 if isinstance(result, (list, tuple)):
  return _fix_list_encoding(result)
 if isinstance(result, str):
  return _to_unicode(result)
 return result

def ek ( function , * args , ** kwargs ) : if ( name == 'nt' ) : result = function ( * args , ** kwargs ) else : result = function ( * [ ( ss ( x ) if isinstance ( x , ( str , unicode ) ) else x ) for x in args ] , ** kwargs ) if isinstance ( result , ( list , tuple ) ) : return _fix_list_encoding ( result ) if isinstance ( result , str ) : return _to_unicode ( result ) return result
encoding kludge: call function with arguments and unicode-encode output .