set PYTHONIOENCODING=utf-8 before running merge_alignment.py