def __init__(self, *args, **kwargs):
        """
        Overwrites the extra loaders to get the right template.
        """
        filename = os.path.join(os.path.dirname(__file__), 'rst_modified.tpl')
        with open(filename, 'r', encoding='utf-8') as f:
            content = f.read()
        filename = os.path.join(os.path.dirname(__file__), 'rst.tpl')
        with open(filename, 'r', encoding='utf-8') as f:
            content2 = f.read()

        dl = DictLoader({'rst_modified.tpl': content, 'rst.tpl': content2})
        kwargs['extra_loaders'] = [dl]
        RSTExporter.__init__(self, *args, **kwargs)