Make Python2.7 happy with unittests.

* Use `unicode_literals` to make str in 2.7 as unicode.
* Function `prepare_unicode_to_latex` is created to wrap generation
  of unicode-latex mappings in consideration of unicode.