def _chr(opt):
 if isinstance(opt, basestring):
  return opt
 else:
  return chr(opt)

def _chr ( opt ) : if isinstance ( opt , basestring ) : return opt else : return chr ( opt )
a more permissive chr() like chr() .