Rewrite plugin for Python3.

The new version of Gedit is based on Python 3.
The AutoLaTeX plugin for Gedit is rewritten for Python 3 (issue #82).