use `codecs.open` to write the output file (make sure it get's written in utf-8 in py2 and py3)
use `codecs.open` to write the output file (make sure it get's written in utf-8 in py2 and py3)

topic2k/pygcgen