#!/usr/bin/env python import sys import codecs sys.stdout = codecs.getwriter('utf-8')(sys.stdout)