Grammar and PEP8 fixes for render_math plugin