Python 3 enhancement; Passing unit tests for pelican

This fix ensures that typogrify works with Python3. It has also been tested
by running the Pelican unit-tests both with python 2 and python 3