Add Python 3 compatibility
Merge pull request #171 from ariddell/patch-1

Add Python 3 compatibility to render_math plugin