<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    <url>
        <loc>{{ base_url }}/</loc>
        <priority>1.0</priority>
    </url>
    {% for version, modules in klasses.iteritems() %}
        {% for module, methods in modules.iteritems() %}
            {% for method in methods %}
                <url>
                    <loc>{{ base_url }}/{{ version }}/{{ module }}/{{ method }}.html</loc>
                    {% if version == latest_version %}
                        <priority>0.9</priority>
                    {% else %}
                        <priority>0.5</priority>
                    {% endif %}
                </url>
            {% endfor %}
        {% endfor %}
    {% endfor %}
</urlset>

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    <url>
        <loc>{{ base_url }}/</loc>
        <priority>1.0</priority>
    </url>
    {% for version, modules in klasses.items() %}
        {% for module, methods in modules.items() %}
            {% for method in methods %}
                <url>
                    <loc>{{ base_url }}/{{ version }}/{{ module }}/{{ method }}.html</loc>
                    {% if version == latest_version %}
                        <priority>0.9</priority>
                    {% else %}
                        <priority>0.5</priority>
                    {% endif %}
                </url>
            {% endfor %}
        {% endfor %}
    {% endfor %}
</urlset>

Fix old usage of iteritems
Fix old usage of iteritems
