>>> f = open('/tmp/karl_out.txt','w') >>> f.write(karl_uni.encode('utf-8')) >>> f.close()