Be compatible with gedit >=3.8, just be python3.